autowisp.tests.error_fixtures module

Class Inheritance Diagram

Inheritance diagram of FileKind, FindStarsError, Path, RelatedFile

Shared fixtures for the error-handling unit tests.

Keeps the canonical “realistic” sample errors in one place so the hierarchy, persistence, and rendering tests all exercise the same shape.

The related files of a find_stars failure (real I/O shape).

The step’s input is a calibrated FITS image and its (expected) output is the image’s DR file.

autowisp.tests.error_fixtures.make_find_stars_error(*, related_files=None, details=None)[source]

Build a representative FindStarsError for the tests.

Parameters:
  • related_files (Sequence[RelatedFile] or None) – Override the default calibrated-in / DR-out related files.

  • details (dict or None) – Override the default details dict.

Returns:

The sample error (no cause/traceback attached;

callers that need one raise inside an except and set it).

Return type:

FindStarsError