current_fixture_path#

lsst.images.tests.current_fixture_path(directory, name, *, variant=None)#

Return the fixture path for a schema’s live version, by name.

Parameters:
  • directory (Path) – Directory holding the fixture tree.

  • name (str) – Schema name, e.g. visit_image.

  • variant (str | None, default: None) – Variant name, or None for the base fixture.

Returns:

Path to the fixture for whatever version the code is currently at.

Return type:

pathlib.Path

Raises:

LookupError – If no schema is registered under name.

Notes

This is the entry point for tests that just want representative data. Resolving through the live class means such a test does not need editing when a schema is frozen or its version is bumped.

This page was last modified on .