From a3dbae7e15e764f26cb1dbe40e3506c12743ce94 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Sat, 15 Apr 2023 13:15:17 +0100 Subject: [PATCH] Fix condition for skipping tests --- tests/test_cookiecutter_generation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_cookiecutter_generation.py b/tests/test_cookiecutter_generation.py index 3bc259a89..e4a03b3b2 100755 --- a/tests/test_cookiecutter_generation.py +++ b/tests/test_cookiecutter_generation.py @@ -189,7 +189,7 @@ def test_flake8_passes(cookies, context_override): pytest.fail(e.stdout.decode()) -@pytest.mark.skipif(AUTOFIXABLE_STYLES, reason="Black is auto-fixable") +@pytest.mark.skipif(not AUTOFIXABLE_STYLES, reason="Black is auto-fixable") @pytest.mark.parametrize("context_override", SUPPORTED_COMBINATIONS, ids=_fixture_id) def test_black_passes(cookies, context_override): """Check whether generated project passes black style."""