Skip to content

Commit

Permalink
(Actually) skip VCR.py related tests if VCRPY_ENCRYPTION_KEY is not…
Browse files Browse the repository at this point in the history
… available
  • Loading branch information
pawelad committed Sep 10, 2024
1 parent 5fe1d90 commit 634eaaa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/pymonzo/test_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def test_list_respx(

@pytest.mark.vcr()
@pytest.mark.skipif(
os.getenv("VCRPY_ENCRYPTION_KEY") is None,
not bool(os.getenv("VCRPY_ENCRYPTION_KEY")),
reason="`VCRPY_ENCRYPTION_KEY` is not available on GitHub PRs.",
)
def test_list_vcr(
Expand Down
2 changes: 1 addition & 1 deletion tests/pymonzo/test_balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def test_get_respx(

@pytest.mark.vcr()
@pytest.mark.skipif(
os.getenv("VCRPY_ENCRYPTION_KEY") is None,
not bool(os.getenv("VCRPY_ENCRYPTION_KEY")),
reason="`VCRPY_ENCRYPTION_KEY` is not available on GitHub PRs.",
)
def test_get_vcr(self, balance_resource: BalanceResource) -> None:
Expand Down
2 changes: 1 addition & 1 deletion tests/pymonzo/test_pots.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def test_get_default_pot(

@pytest.mark.vcr()
@pytest.mark.skipif(
os.getenv("VCRPY_ENCRYPTION_KEY") is None,
not bool(os.getenv("VCRPY_ENCRYPTION_KEY")),
reason="`VCRPY_ENCRYPTION_KEY` is not available on GitHub PRs.",
)
def test_list_vcr(self, pots_resource: PotsResource) -> None:
Expand Down
2 changes: 1 addition & 1 deletion tests/pymonzo/test_whoami.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TestWhoAmIResource:

@pytest.mark.vcr()
@pytest.mark.skipif(
os.getenv("VCRPY_ENCRYPTION_KEY") is None,
not bool(os.getenv("VCRPY_ENCRYPTION_KEY")),
reason="`VCRPY_ENCRYPTION_KEY` is not available on GitHub PRs.",
)
def test_whoami_vcr(self, whoami_resource: WhoAmIResource) -> None:
Expand Down

0 comments on commit 634eaaa

Please sign in to comment.