autowisp.tests package
Class Inheritance Diagram

Autowisp unit-test init.
- class autowisp.tests.AutoWISPTestCase(methodName='runTest')[source]
Bases:
FloatTestCase
Base class for AutoWISP tests.
- _test_failed()[source]
Whether this test has just failed or errored.
Read off the result rather than a flag the test sets, so nothing has to be remembered at the end of every test method. Two things make the obvious shortcuts wrong:
_outcome.successis still True here (it is reset per test part, andtearDownis its own part), andresult.errors/result.failuresaccumulate over the whole run – so the entries have to be matched against this test rather than merely counted.- Returns:
True if this test recorded a failure or an error.
- Return type:
- preserve_failed_processing = True
Set False by a test that does not want its processing directory kept even when it fails (nothing does at present). Failure is detected from the test result, so a passing test never has to say anything – the previous arrangement, where each test opted in by setting
successful_test, silently preserved the directory of every test that forgot to.
- preserve_processing_dir = None
- classmethod set_test_directory(test_dirname, processing_dirname, failed_test_dirname, preserve_processing_dir=None)[source]
Set the directory where data to test against is located.
- stage_catalog_cache = True
Submodules
- autowisp.tests.error_fixtures module
- autowisp.tests.fits_test_case module
- autowisp.tests.generate_catalog_test_data module
- autowisp.tests.get_test_data module
- autowisp.tests.h5_test_case module
- autowisp.tests.test_calibrate module
- autowisp.tests.test_catalog module
- autowisp.tests.test_crash_report module
- Class Inheritance Diagram
TestBuildCrashReportTestCollectEnvironmentTestCollectProvenanceTestCrashReportCliTestFindErrorProgressTestFindErrorProgress.setUp()TestFindErrorProgress.test_filters_by_image_type_when_image_known()TestFindErrorProgress.test_none_for_stepless_or_runless()TestFindErrorProgress.test_resolves_by_run_and_step()TestFindErrorProgress.test_resolves_lightcurve_step()TestFindErrorProgress.test_select_logs_empty_without_progress()
TestScrubConfigValuesTestScrubMappingTestScrubText
- autowisp.tests.test_create_lightcurves module
- autowisp.tests.test_database_migration module
- Class Inheritance Diagram
TestAdditiveMigrationsTestAdditiveMigrations._make_old_project()TestAdditiveMigrations.setUp()TestAdditiveMigrations.test_adds_missing_code_version()TestAdditiveMigrations.test_adds_missing_resolved_to_old_error_table()TestAdditiveMigrations.test_creates_missing_error_table()TestAdditiveMigrations.test_idempotent()TestAdditiveMigrations.test_preexisting_rows_and_data_preserved()
- autowisp.tests.test_detrending_stat module
- autowisp.tests.test_epd module
- autowisp.tests.test_error_capture_middleware module
- Class Inheritance Diagram
TestErrorCaptureMiddlewareTestErrorCaptureMiddleware.setUp()TestErrorCaptureMiddleware.setUpClass()TestErrorCaptureMiddleware.tearDownClass()TestErrorCaptureMiddleware.test_recording_failure_is_swallowed()TestErrorCaptureMiddleware.test_request_snapshot_keys_only()TestErrorCaptureMiddleware.test_unknown_exception_wrapped_and_recorded()
_mock_request()
- autowisp.tests.test_error_cli module
- autowisp.tests.test_error_context module
- Class Inheritance Diagram
TestAmbientAccessorsTestCaptureErrorsTestCaptureErrors.test_bare_value_error_wrapped_to_step_subclass()TestCaptureErrors.test_existing_autowisp_error_passes_through_stamped()TestCaptureErrors.test_no_run_leaves_pipeline_run_none()TestCaptureErrors.test_pipeline_and_bui_wrapping()TestCaptureErrors.test_preset_step_name_not_overwritten()TestCaptureErrors.test_success_returns_value()TestCaptureErrors.test_unknown_step_falls_back_to_base_steperror()TestCaptureErrors.test_wrap_unknown_false_passes_through()
TestErrorContextDataclassTestErrorContextManagerTestExitSignalDecodeTestFromConfigTestNestingGuardTestPoolPropagationTestPoolPropagation.test_bare_exception_wrapped_to_mapped_step_error()TestPoolPropagation.test_faulthandler_dumps_native_traceback()TestPoolPropagation.test_step_error_propagates_with_context()TestPoolPropagation.test_worker_crashed_carries_scoped_config()TestPoolPropagation.test_worker_crashed_carries_step_name()TestPoolPropagation.test_worker_crashed_dedups_shared_related_file()TestPoolPropagation.test_worker_crashed_names_inflight_input()TestPoolPropagation.test_worker_crashed_promotes_related_files()TestPoolPropagation.test_worker_crashed_records_exit_signal()TestPoolPropagation.test_worker_crashed_records_resources()TestPoolPropagation.test_worker_error_carries_config()TestPoolPropagation.test_worker_error_carries_reference_files()TestPoolPropagation.test_worker_error_carries_related_file()TestPoolPropagation.test_worker_hard_exit_raises_worker_crashed()
TestProcessQueuePropagationTestResourceSnapshotTestWorkerEntryTestWorkerEntry.test_autowisp_error_passes_through_stamped()TestWorkerEntry.test_bare_exception_wrapped_to_step_subclass()TestWorkerEntry.test_inflight_map_cleared_on_error()TestWorkerEntry.test_inflight_map_tracks_then_clears_item()TestWorkerEntry.test_resolve_related_files_callable_returning_many()TestWorkerEntry.test_resolve_related_files_from_kind_and_callable()TestWorkerEntry.test_resolve_related_files_is_total()TestWorkerEntry.test_subprocess_id_not_overwritten_by_later_stamp()TestWorkerEntry.test_success_returns_value()
_ContextTestCase_dr_file()_hard_exit_worker()_instant_exit()_lc_with_reference()_nested_run_pool_worker()_noop()_pool_config()_process_queue_worker()_raise_find_stars_error()_raise_value_error()_segfault_worker()
- autowisp.tests.test_error_persistence module
- Class Inheritance Diagram
TestCleanupErrorsTestCleanupErrors._age_error()TestCleanupErrors.setUp()TestCleanupErrors.test_aged_rows_and_sidecars_removed()TestCleanupErrors.test_dangling_row_reference_cleared()TestCleanupErrors.test_delete_all_sidecars_keeps_foreign_files()TestCleanupErrors.test_orphan_files_removed()TestCleanupErrors.test_sweep_keeps_valid_sidecar()
TestParseDurationTestPersistErrorTestPersistError.test_artifact_fks_resolved_from_related_files()TestPersistError.test_delete_missing_error_is_noop()TestPersistError.test_delete_removes_row_and_sidecar()TestPersistError.test_large_payload_is_gzipped()TestPersistError.test_missing_sidecar_degrades_to_none()TestPersistError.test_row_and_sidecar_are_complementary()TestPersistError.test_sidecar_failure_leaves_valid_row()TestPersistError.test_worker_crashed_persists_step_name()
TestRunPipelineHandler_PersistenceTestCase
- autowisp.tests.test_error_render module
- Class Inheritance Diagram
TestErrorCountsTestErrorCounts.setUp()TestErrorCounts.test_counts_by_step_excludes_stepless()TestErrorCounts.test_counts_exclude_resolved()TestErrorCounts.test_gate_always_includes_pipeline_errors()TestErrorCounts.test_gate_excludes_bui_errors()TestErrorCounts.test_gate_excludes_resolved()TestErrorCounts.test_gate_scopes_step_errors_to_selected_steps()TestErrorCounts.test_list_shows_resolved_open_first()TestErrorCounts.test_step_filter_on_list_rows()TestErrorCounts.test_total_count()
TestErrorDetailTestErrorListRowsTestErrorSummaryTestFormatDetailText_RenderTestCase
- autowisp.tests.test_exception_hierarchy module
- Class Inheritance Diagram
TestCatalogRetryExhaustionTestExceptionHierarchyTestExceptionHierarchy.test_all_classes_pickle_round_trip()TestExceptionHierarchy.test_every_concrete_class_sets_component()TestExceptionHierarchy.test_full_payload_pickle_round_trip()TestExceptionHierarchy.test_minimal_construction_defaults()TestExceptionHierarchy.test_stamp_subprocess_sets_and_is_idempotent()TestExceptionHierarchy.test_with_pipeline_run_attaches_and_sets_crashed()TestExceptionHierarchy.test_with_pipeline_run_keeps_existing_crashed()
TestFrozenRowTestMigratedExceptionsTestMigratedExceptions.test_catalog_error_is_cross_cutting_step_error()TestMigratedExceptions.test_convergence_error_is_pure_step_error()TestMigratedExceptions.test_hdf5_layout_error_is_pipeline()TestMigratedExceptions.test_no_stdlib_mixins()TestMigratedExceptions.test_outside_image_error_specializes_calibration()
TestSnapshotRowTestToDetailDict_ToyRow_concrete_exception_classes()_full_payload()
- autowisp.tests.test_find_stars module
- autowisp.tests.test_fit_magnitudes module
- autowisp.tests.test_fit_source_extracted_psf_map module
- autowisp.tests.test_fit_star_shape module
- autowisp.tests.test_full_pipeline module
- autowisp.tests.test_lc_filter module
- Class Inheritance Diagram
TestCatalogSourceListFilterTestLCFilterTestLCFilter._astrometried_dr_files()TestLCFilter._compare_lc()TestLCFilter._epd_ignore()TestLCFilter._full_lc_ids()TestLCFilter._is_postprocessing()TestLCFilter._lc_ids()TestLCFilter._run_restricted_lc()TestLCFilter._stage_mag_limited_lc_catalog()TestLCFilter.test_bright_mag_limit()TestLCFilter.test_combined()TestLCFilter.test_manual_source_list()
- autowisp.tests.test_measure_aperture_photometry module
- autowisp.tests.test_parse_config_overwrites module
- Class Inheritance Diagram
TestParseConfigOverwritesTestParseConfigOverwrites.test_blank_lines_skipped()TestParseConfigOverwrites.test_colon_separator()TestParseConfigOverwrites.test_comment_only_lines_skipped()TestParseConfigOverwrites.test_dash_and_dot_in_key()TestParseConfigOverwrites.test_double_quoted_value()TestParseConfigOverwrites.test_inline_comment_stripped()TestParseConfigOverwrites.test_key_equals_value()TestParseConfigOverwrites.test_key_with_empty_value()TestParseConfigOverwrites.test_key_without_value()TestParseConfigOverwrites.test_later_value_wins()TestParseConfigOverwrites.test_non_parameter_keys_excluded()TestParseConfigOverwrites.test_section_headers_skipped()TestParseConfigOverwrites.test_semicolon_preserved_in_value()TestParseConfigOverwrites.test_single_quoted_value()TestParseConfigOverwrites.test_test_cfg_like_block()
- autowisp.tests.test_provenance_resolver module
- autowisp.tests.test_related_files module
- Class Inheritance Diagram
TestCatalogScopesTestHDF5ProductsAttachThemselvesTestHDF5ProductsAttachThemselves._dr_pair()TestHDF5ProductsAttachThemselves.setUpClass()TestHDF5ProductsAttachThemselves.tearDownClass()TestHDF5ProductsAttachThemselves.test_in_memory_product_attaches_nothing()TestHDF5ProductsAttachThemselves.test_merit_step_names_the_dr_it_failed_on()TestHDF5ProductsAttachThemselves.test_nested_products_all_attach()TestHDF5ProductsAttachThemselves.test_open_for_reading_attaches_as_input()TestHDF5ProductsAttachThemselves.test_psf_map_step_names_the_dr_it_failed_on()
TestMainProcessScopesTestMainProcessScopes.test_add_images_to_db_scopes_the_raw_image()TestMainProcessScopes.test_calibrate_scopes_the_raw_image_and_masters()TestMainProcessScopes.test_calibrate_without_masters_scopes_only_the_image()TestMainProcessScopes.test_stack_to_master_flat_scopes_both_masters()TestMainProcessScopes.test_stack_to_master_scopes_frames_and_master()
TestWorkerPoolClassifiersTestWorkerPoolClassifiers._captured_classifier()TestWorkerPoolClassifiers._detrending_classifier()TestWorkerPoolClassifiers._magfit_classifier()TestWorkerPoolClassifiers.test_detrending_passes_lightcurve_and_photref()TestWorkerPoolClassifiers.test_detrending_without_photref_passes_only_the_lightcurve()TestWorkerPoolClassifiers.test_fit_star_shape_passes_the_frame_set()TestWorkerPoolClassifiers.test_magfit_passes_dr_and_both_photrefs()TestWorkerPoolClassifiers.test_magfit_without_master_photref()
_StampedFilesMixin_StubRaise_pairs()
- autowisp.tests.test_solve_astrometry module
- autowisp.tests.test_source_finder module
- autowisp.tests.test_stack_to_master module
- autowisp.tests.test_tfa module
- autowisp.tests.test_tfa_num_templates module
- autowisp.tests.update_hdf5_contents module