scitacean.testing.backend.fixtures.fake_client#

scitacean.testing.backend.fixtures.fake_client(scicat_access)[source]#

Fixture that returns a fake client.

The client is seeded from the same data as the backend. But only if the backend has been requested. So any test that uses fake_client explicitly and requires the seed, must also request the require_scicat_backend fixture.

Returns:

FakeClient – A fake client that potentially contains the seed data. See scitacean.testing.backend.seed.