Skip to content

Commit

Permalink
Avoid 'poetry self' in test when managed by Pipx
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Sep 9, 2024
1 parent 0a240b0 commit 8535154
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,15 +263,10 @@ def test_bypass():
assert "-1.2.3-" in artifact.name


@pytest.mark.skipif("CI" in os.environ, reason="CI uses Pipx, which doesn't play nice with this 'poetry self'")
def test_plugin_show():
_, out = run("poetry self show")

# This is flaky during CI for some reason.
# There's no error from Poetry, but the plugin isn't always listed,
# even though it's installed and usable.
# Just skip it for now.
if "CI" not in os.environ:
assert "poetry-dynamic-versioning" in out
assert "poetry-dynamic-versioning" in out


@pytest.mark.skipif("USE_PEP621" not in os.environ, reason="Requires Poetry with PEP-621 support")
Expand Down

0 comments on commit 8535154

Please sign in to comment.