scrapbook.tests package¶
Submodules¶
scrapbook.tests.test_api module¶
-
scrapbook.tests.test_api.kernel_mock()¶ Mocks the kernel to capture warnings during testing
-
scrapbook.tests.test_api.test_glue(mock_display, name, scrap, encoder, data, metadata)¶
-
scrapbook.tests.test_api.test_glue_display_only(mock_display, name, obj, data, encoder, metadata, display)¶
-
scrapbook.tests.test_api.test_glue_plus_display(mock_display, name, obj, data_output, display_output, encoder, data_metadata, display_metadata, display)¶
-
scrapbook.tests.test_api.test_glue_warning(kernel_mock)¶
scrapbook.tests.test_encoders module¶
-
class
scrapbook.tests.test_encoders.BadEncoder¶ Bases:
object-
decode(scrap, **kwargs)¶
-
encode(scrap, **kwargs)¶
-
-
scrapbook.tests.test_encoders.registry()¶
-
scrapbook.tests.test_encoders.test_bad_decode(registry)¶
-
scrapbook.tests.test_encoders.test_bad_encode(registry)¶
-
scrapbook.tests.test_encoders.test_decode(registry)¶
-
scrapbook.tests.test_encoders.test_encode(registry)¶
-
scrapbook.tests.test_encoders.test_json_decode(test_input, expected)¶
-
scrapbook.tests.test_encoders.test_json_decode_failures(test_input)¶
-
scrapbook.tests.test_encoders.test_json_encode(test_input, expected)¶
-
scrapbook.tests.test_encoders.test_json_encode_failures(test_input)¶
-
scrapbook.tests.test_encoders.test_missing_decode(registry)¶
-
scrapbook.tests.test_encoders.test_missing_encode(registry)¶
-
scrapbook.tests.test_encoders.test_registry_deregister(registry)¶
-
scrapbook.tests.test_encoders.test_registry_invalid_register(registry)¶
-
scrapbook.tests.test_encoders.test_registry_missing_deregister(registry)¶
-
scrapbook.tests.test_encoders.test_registry_register(registry)¶
-
scrapbook.tests.test_encoders.test_registry_reset(registry)¶
-
scrapbook.tests.test_encoders.test_text_decode(test_input, expected)¶
-
scrapbook.tests.test_encoders.test_text_encode(test_input, expected)¶
scrapbook.tests.test_notebooks module¶
-
scrapbook.tests.test_notebooks.kernel_mock()¶ Mocks the kernel to capture warnings during testing
-
scrapbook.tests.test_notebooks.no_exec_result()¶
-
scrapbook.tests.test_notebooks.notebook_backwards_result()¶
-
scrapbook.tests.test_notebooks.notebook_result()¶
-
scrapbook.tests.test_notebooks.test_bad_ext()¶
-
scrapbook.tests.test_notebooks.test_bad_ext_for_url()¶
-
scrapbook.tests.test_notebooks.test_bad_path()¶
-
scrapbook.tests.test_notebooks.test_cell_timing(notebook_result)¶
-
scrapbook.tests.test_notebooks.test_data_scraps(notebook_result)¶
-
scrapbook.tests.test_notebooks.test_directory(notebook_result)¶
-
scrapbook.tests.test_notebooks.test_display_scraps(notebook_result)¶
-
scrapbook.tests.test_notebooks.test_empty_metadata()¶
-
scrapbook.tests.test_notebooks.test_execution_counts(notebook_result)¶
-
scrapbook.tests.test_notebooks.test_filename(notebook_result)¶
-
scrapbook.tests.test_notebooks.test_good_ext_for_url(mock_read)¶
-
scrapbook.tests.test_notebooks.test_malformed_cell_timing(no_exec_result)¶
-
scrapbook.tests.test_notebooks.test_malformed_execution_counts(no_exec_result)¶
-
scrapbook.tests.test_notebooks.test_malformed_execution_metrics(no_exec_result)¶
-
scrapbook.tests.test_notebooks.test_markdown()¶
-
scrapbook.tests.test_notebooks.test_metadata_but_empty_content()¶
-
scrapbook.tests.test_notebooks.test_missing_reglue(notebook_result)¶
-
scrapbook.tests.test_notebooks.test_missing_reglue_no_error(mock_display, notebook_result)¶
-
scrapbook.tests.test_notebooks.test_no_cells()¶
-
scrapbook.tests.test_notebooks.test_no_outputs()¶
-
scrapbook.tests.test_notebooks.test_papermill_dataframe(notebook_result)¶
-
scrapbook.tests.test_notebooks.test_papermill_metrics(notebook_result)¶
-
scrapbook.tests.test_notebooks.test_parameters(notebook_result)¶
-
scrapbook.tests.test_notebooks.test_record_scraps_collection_dataframe(notebook_backwards_result)¶
-
scrapbook.tests.test_notebooks.test_reglue_display(mock_display, notebook_result)¶
-
scrapbook.tests.test_notebooks.test_reglue_display_unattached(mock_display, notebook_result)¶
-
scrapbook.tests.test_notebooks.test_reglue_kernel_no_warning(kernel_mock, notebook_result, recwarn)¶
-
scrapbook.tests.test_notebooks.test_reglue_rename(mock_display, notebook_result)¶
-
scrapbook.tests.test_notebooks.test_reglue_scrap(mock_display, notebook_result)¶
-
scrapbook.tests.test_notebooks.test_reglue_scrap_unattached(mock_display, notebook_result)¶
-
scrapbook.tests.test_notebooks.test_reglue_warning(kernel_mock, notebook_result)¶
-
scrapbook.tests.test_notebooks.test_scrap_dataframe(notebook_result)¶
-
scrapbook.tests.test_notebooks.test_scraps_collection_dataframe(notebook_result)¶
scrapbook.tests.test_scrapbooks module¶
-
class
scrapbook.tests.test_scrapbooks.AnyMarkdownWith(data=None, url=None, filename=None, metadata=None)¶ Bases:
IPython.core.display.Markdown
-
scrapbook.tests.test_scrapbooks.kernel_mock()¶ Mocks the kernel to capture warnings during testing
-
scrapbook.tests.test_scrapbooks.notebook_collection()¶
-
scrapbook.tests.test_scrapbooks.test_assign_from_path(notebook_collection)¶
-
scrapbook.tests.test_scrapbooks.test_notebook_scraps(notebook_collection)¶
-
scrapbook.tests.test_scrapbooks.test_papermill_dataframe(notebook_collection)¶
-
scrapbook.tests.test_scrapbooks.test_papermill_metrics(notebook_collection)¶
-
scrapbook.tests.test_scrapbooks.test_scraps(notebook_collection)¶
-
scrapbook.tests.test_scrapbooks.test_scraps_report(mock_display, notebook_collection)¶
-
scrapbook.tests.test_scrapbooks.test_scraps_report_no_headers(mock_display, notebook_collection)¶
-
scrapbook.tests.test_scrapbooks.test_scraps_report_with_data(mock_display, notebook_collection)¶
-
scrapbook.tests.test_scrapbooks.test_scraps_report_with_data_no_headers(mock_display, notebook_collection)¶
-
scrapbook.tests.test_scrapbooks.test_scraps_report_with_notebook_names(mock_display, notebook_collection)¶
-
scrapbook.tests.test_scrapbooks.test_scraps_report_with_scrap_and_notebook_names(mock_display, notebook_collection)¶
-
scrapbook.tests.test_scrapbooks.test_scraps_report_with_scrap_list_names(mock_display, notebook_collection)¶
-
scrapbook.tests.test_scrapbooks.test_scraps_report_with_scrap_string_name(mock_display, notebook_collection)¶
scrapbook.tests.test_scraps module¶
-
scrapbook.tests.test_scraps.test_payload_to_scrap(test_input, expected)¶
-
scrapbook.tests.test_scraps.test_payload_to_scrap_later_version(mock_logging)¶
-
scrapbook.tests.test_scraps.test_payload_to_scrap_later_version_mismatch(mock_logging)¶
-
scrapbook.tests.test_scraps.test_payload_to_scrap_validation_error(test_input)¶
-
scrapbook.tests.test_scraps.test_scrap_to_payload(test_input, expected)¶
-
scrapbook.tests.test_scraps.test_scrap_to_payload_validation_error(test_input)¶