Skip to content

Commit

Permalink
cleanup test
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoop committed Apr 23, 2024
1 parent 7792253 commit 6bac246
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/functional/dependencies/test_dependency_secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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)
Expand Down

0 comments on commit 6bac246

Please sign in to comment.