From cee289a391b9637dfe124447291af4e49c14da9c Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Thu, 6 Apr 2023 21:35:12 +0200 Subject: [PATCH] Fix integration test skip logic --- tests/integration/conftest.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index ed3033a..8821294 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -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"])