Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
54cee5a6
Commit
54cee5a6
authored
Oct 30, 2020
by
Markus Scheidgen
Browse files
Disable setLevel on loggging Logger and Handler for tests.
parent
595fcef2
Pipeline
#85444
passed with stages
in 23 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/conftest.py
View file @
54cee5a6
...
...
@@ -61,8 +61,10 @@ def monkeysession(request):
@
pytest
.
fixture
(
scope
=
'session'
,
autouse
=
True
)
def
nomad_logging
():
def
nomad_logging
(
monkeysession
):
utils
.
set_console_log_level
(
test_log_level
)
monkeysession
.
setattr
(
'logging.Logger.setLevel'
,
lambda
*
args
,
**
kwargs
:
None
)
monkeysession
.
setattr
(
'logging.Handler.setLevel'
,
lambda
*
args
,
**
kwargs
:
None
)
@
pytest
.
fixture
(
scope
=
'session'
,
autouse
=
True
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment