scitacean.testing.backend.fixtures.scicat_backend#
- scitacean.testing.backend.fixtures.scicat_backend(request, tmp_path_factory, scicat_access)[source]#
Fixture to declare that a test needs a local scicat backend.
If backend tests are enabled, this fixture spins up the backend in a docker container the first time a test requests it. The backend will be stopped and removed at the end of the test session.
scitacean.testing.backend.seed
is used to initialize the database.If backend tests are disabled, this fixture prepares the seed for use with
scitacean.testing.backend.fixtures.fake_client()
.- Returns:
True if backend tests are enabled and False otherwise.