From d6c68ff1b81c611d1e4d83fcdf29d08a7d9ed32c Mon Sep 17 00:00:00 2001 From: Maciej Pienczyn Date: Mon, 2 Feb 2026 08:04:55 +0100 Subject: [PATCH] fix: Fix smoke tests and E2E fixture scope issues - Disable coverage plugin for smoke tests (pytest-cov not installed) - Change base_url fixture scope to session (pytest-playwright compatibility) Co-Authored-By: Claude Opus 4.5 --- .github/workflows/test.yml | 2 +- tests/e2e/test_login_flow.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4de8345..6e2e6ad 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -140,7 +140,7 @@ jobs: - name: Run smoke tests run: | - pytest tests/smoke/test_production_health.py -v + pytest tests/smoke/test_production_health.py -v -p no:cov --override-ini="addopts=" env: PROD_URL: https://nordabiznes.pl diff --git a/tests/e2e/test_login_flow.py b/tests/e2e/test_login_flow.py index 797b3c5..34e066b 100644 --- a/tests/e2e/test_login_flow.py +++ b/tests/e2e/test_login_flow.py @@ -33,7 +33,7 @@ TEST_ADMIN_PASSWORD = 'cSfQbbwegwv1v3Q2Dm0Q' BASE_URL = os.environ.get('BASE_URL', 'https://staging.nordabiznes.pl') -@pytest.fixture +@pytest.fixture(scope="session") def base_url(): """Get base URL for tests.""" return BASE_URL