Skip to content

Commit

Permalink
fix: reset debug mode after test
Browse files Browse the repository at this point in the history
  • Loading branch information
nodegard committed Jul 25, 2024
1 parent fdf90de commit 4bd3d01
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/tests_unit/test_cognite_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ def test_client_load(self):
assert client.config.credentials.client_secret == "test-client-secret"
assert client.config.credentials.token_url == TOKEN_URL
assert client.config.credentials.scopes == ["https://test.com/.default", "https://test.com/.admin"]
assert client.config.debug is True
log = logging.getLogger("cognite.client")
log.handlers = []
log.propagate = False

def test_client_from_yaml_with_envs(self, set_env_vars):
path = os.path.join(os.path.dirname(__file__), "test_config_envs.yaml")
Expand All @@ -147,6 +151,9 @@ def test_client_from_yaml_with_envs(self, set_env_vars):
assert client.config.credentials.token_url == TOKEN_URL
assert client.config.credentials.scopes == ["https://test.com/.default", "https://test.com/.admin"]
assert client.config.debug is True
log = logging.getLogger("cognite.client")
log.handlers = []
log.propagate = False

def test_client_from_yaml_missing_envs(self):
path = os.path.join(os.path.dirname(__file__), "test_config_envs.yaml")
Expand Down

0 comments on commit 4bd3d01

Please sign in to comment.