(Fake) API Testing

Module to test fake api usage.

Meant to serve as template in case the package uses non-local database.

class tests.test_fakeapi.FakeAPI[source]

Bases: object

Fake API.

classmethod create()[source]

Expensive operation to create API.

shutdown()[source]

Expensive shutdown operation.

tests.test_fakeapi.fake_api()[source]

Yield api inerface when needed.

Scope set to session, to only create once per test session.

Yields

FakeAPI – FakeAPI instance using a localhost as url.