1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-06-23 06:25:26 +00:00

Fix integration test skip logic

This commit is contained in:
Ivan Habunek 2023-04-06 21:35:12 +02:00
parent 5cb8967c84
commit cee289a391
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

@ -38,15 +38,14 @@ TRUMPET = str(Path(__file__).parent.parent.parent / "trumpet.png")
ASSETS_DIR = str(Path(__file__).parent.parent / "assets")
if not BASE_URL or not DATABASE_DSN:
pytest.skip("Skipping integration tests", allow_module_level=True)
# ------------------------------------------------------------------------------
# Fixtures
# ------------------------------------------------------------------------------
def create_app():
if not BASE_URL:
pytest.skip("Skipping integration tests, BASE_URL not set")
instance = api.get_instance(BASE_URL)
response = api.create_app(BASE_URL)
return App(instance["uri"], BASE_URL, response["client_id"], response["client_secret"])