From 8535154ca276a2fa0d6c64d4eb25730a4931639b Mon Sep 17 00:00:00 2001 From: mtkennerly Date: Mon, 9 Sep 2024 00:30:51 -0400 Subject: [PATCH] Avoid 'poetry self' in test when managed by Pipx --- tests/test_integration.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/test_integration.py b/tests/test_integration.py index 184df2e..14ed759 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -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")