Skip to content

Commit

Permalink
Allow the setting of log level by env vars
Browse files Browse the repository at this point in the history
Required by #637
  • Loading branch information
adamdougal committed Apr 10, 2024
1 parent cfcc2e8 commit 1fccbd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/tests/utilities/test_EnvHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,15 @@ def test_sets_default_log_level_when_unset():
def test_uses_and_uppercases_log_level_when_set(monkeypatch: MonkeyPatch):
# given
monkeypatch.setenv("LOGLEVEL", "deBug")

# when
env_helper = EnvHelper()

# then
assert env_helper.LOGLEVEL == "DEBUG"



def test_keys_are_unset_when_auth_type_rbac(monkeypatch: MonkeyPatch):
# given
monkeypatch.setenv("AZURE_AUTH_TYPE", "rbac")
Expand Down

0 comments on commit 1fccbd5

Please sign in to comment.