api.testing

Module Contents

Classes

ObservatoryApiEnvironment

class api.testing.ObservatoryApiEnvironment(host: str = 'localhost', port: int = 5000, seed_db: bool = False)[source]
create()[source]

Make and destroy an Observatory API isolated environment, which involves:

  • Creating an in memory SQLite database for the API backend to connect to

  • Start the Connexion / Flask app

Yield:

None.