Skip to content

Commit

Permalink
feat: Fix exempt
Browse files Browse the repository at this point in the history
  • Loading branch information
takahiromitsui committed Oct 20, 2023
1 parent fab080e commit 03d40a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
POLITRACK_SECRET_PASSWORD: ${{ secrets.POLITRACK_SECRET_PASSWORD}}
REDIS_HOST: ${{ secrets.REDIS_HOST}}
# Exempt tests/e2e because tests/api uses production database to test whereas tests/e2e uses localhost == avoid conflicts
run: poetry run pytest -k "not tests/e2e"
run: poetry run pytest -m "not e2e"

cd:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions tests/e2e/api/versions/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
client = TestClient(app)


@pytest.mark.e2e
class TestPartyDonations:
endpoint = "/plugin/partydonations"

Expand Down Expand Up @@ -48,6 +49,7 @@ def test_get_party_donations_without_party_ids(
assert response.json()["items"][-1]["date"] == "2020-01-01"


@pytest.mark.e2e
class TestParty:
endpoint = "/plugin/parties"

Expand Down
1 change: 1 addition & 0 deletions tests/e2e/api/versions/test_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
client = TestClient(app)


@pytest.mark.e2e
class TestPartyDonations:
endpoint = "/v1/partydonations"

Expand Down

0 comments on commit 03d40a8

Please sign in to comment.