From 6bac246e88438be3d409deca15216c5fb2393fd3 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Tue, 23 Apr 2024 14:56:26 -0500 Subject: [PATCH] cleanup test --- tests/functional/dependencies/test_dependency_secrets.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/functional/dependencies/test_dependency_secrets.py b/tests/functional/dependencies/test_dependency_secrets.py index 7e0b592409b..12d3ecb489d 100644 --- a/tests/functional/dependencies/test_dependency_secrets.py +++ b/tests/functional/dependencies/test_dependency_secrets.py @@ -5,12 +5,12 @@ from dbt_common.constants import SECRET_ENV_PREFIX -class TestAllowSecretProfilePackage: +class TestSecretInPackage: @pytest.fixture(scope="class", autouse=True) def setUp(self): - os.environ[SECRET_ENV_PREFIX + "FOR_LOGGING"] = "super secret" + os.environ[SECRET_ENV_PREFIX + "_FOR_LOGGING"] = "super secret" yield - del os.environ[SECRET_ENV_PREFIX + "FOR_LOGGING"] + del os.environ[SECRET_ENV_PREFIX + "_FOR_LOGGING"] @pytest.fixture(scope="class") def packages(self): @@ -23,7 +23,7 @@ def packages(self): ] } - def test_allow_secrets(self, project): + def test_mask_secrets(self, project): _, log_output = run_dbt_and_capture(["deps"]) # this will not be written to logs assert not ("super secret" in log_output)