autowisp.tests.test_find_stars module

Class Inheritance Diagram

Inheritance diagram of DRTestCase, FindStarsError, NoSourcesFoundError, TemporaryDirectory, TestFindStars, TestStarlessFrameHandling

Unit tests for the find_stars step.

class autowisp.tests.test_find_stars.TestFindStars(methodName='runTest')[source]

Bases: DRTestCase

Inheritance diagram of autowisp.tests.test_find_stars.TestFindStars

Tests of the find_stars step.

test_find_stars()[source]

Run the find_stars step and check the outputs against expected.

class autowisp.tests.test_find_stars.TestStarlessFrameHandling(methodName='runTest')[source]

Bases: TestCase

Inheritance diagram of autowisp.tests.test_find_stars.TestStarlessFrameHandling

A starless frame must fail on its own, not take the batch down.

A frame that is clouded over or badly defocused yields no extracted sources. That is a property of the frame, not a pipeline fault, so find_stars_single records it as a failed frame and returns; every other find_stars failure still propagates and stops the run.

_mark_end(input_fname, status=1, **kwargs)[source]

Stand-in for the manager’s progress-end callback.

_mark_start(input_fname, **kwargs)[source]

Stand-in for the manager’s progress-start callback.

_run_with_extractor(tmp, extractor)[source]

Run find_stars_single on a throwaway frame with extractor.

setUp()[source]

Record mark_start / mark_end calls in self.calls.

test_no_sources_marks_frame_failed()[source]

NoSourcesFoundError is recorded as a failure, not re-raised.

test_other_failures_still_propagate()[source]

Any other find_stars failure must still stop the run.