Skip to content

Commit

Permalink
reduce the output clutter printed by the tests
Browse files Browse the repository at this point in the history
this changes the output level of the logger for most test from DEBUG
to WARNING.. IMO the DEBUG log level only ought to be of interest
during development/debugging but not when running unit tests...

Signed-off-by: Andreas Lauser <andreas.lauser@mbition.io>
Signed-off-by: Oliver Kopp <oliver.kopp@mbition.io>
  • Loading branch information
andlaus committed Oct 12, 2021
1 parent 1dbb237 commit 0ed0361
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -4710,7 +4710,7 @@ def test_bus_comment(self):

# This file is not '__main__' when executed via 'python setup.py3
# test'.
logging.basicConfig(level=logging.DEBUG)
logging.basicConfig(level=logging.WARNING)

if __name__ == '__main__':
unittest.main()
2 changes: 1 addition & 1 deletion tests/test_diagnostics_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ def test_unknown_byteorder(self):

# This file is not '__main__' when executed via 'python setup.py3
# test'.
logging.basicConfig()
logging.basicConfig(level=logging.WARNING)

if __name__ == '__main__':
unittest.main()
2 changes: 2 additions & 0 deletions tests/test_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
from io import StringIO
import cantools
import matplotlib.pyplot
import logging

logging.basicConfig(level=logging.WARNING)

class PyplotMock:

Expand Down

0 comments on commit 0ed0361

Please sign in to comment.