Skip to content

Commit

Permalink
Fix unwanted logs weren't silenced during tests
Browse files Browse the repository at this point in the history
Logger levels weren't initialized at import time, so recently introduced
checks of them weren't working right. Using pytest hooks to defer them.
  • Loading branch information
iburakov committed Aug 26, 2023
1 parent ca07745 commit d8ea8c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ml/synthesis/src/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@
test_root_dict,
)

silence_unwanted_logs()

def pytest_sessionstart(session):
silence_unwanted_logs()

0 comments on commit d8ea8c3

Please sign in to comment.