From 30f30d0f860f75422d8dec812b6e7d16520ce350 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Wed, 26 Apr 2023 15:01:07 +0100 Subject: [PATCH] Remove NO_COLOR from conftest.py (#3349) --- conftest.py | 3 --- test/test_cli_role_paths.py | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/conftest.py b/conftest.py index eb67844dff..7cf1f6f1c1 100644 --- a/conftest.py +++ b/conftest.py @@ -53,6 +53,3 @@ pytest.fail( "FATAL: For testing, we require pyyaml to be installed with its native extension, missing it would make testing 3x slower and risk missing essential bugs.", ) - - -os.environ["NO_COLOR"] = "1" diff --git a/test/test_cli_role_paths.py b/test/test_cli_role_paths.py index 4fe9041264..57fbe5f839 100644 --- a/test/test_cli_role_paths.py +++ b/test/test_cli_role_paths.py @@ -90,6 +90,7 @@ def test_run_playbook(local_test_dir: str) -> None: env = os.environ.copy() env["ANSIBLE_ROLES_PATH"] = role_path + env["NO_COLOR"] = "1" result = run_ansible_lint("-f", "pep8", lintable, cwd=cwd, env=env) # All 4 failures are expected to be found inside the included role and not