Refinement in tests Output

I use logging.debug, now
This commit is contained in:
2023-12-09 10:21:55 +01:00
parent f641fbac07
commit cdaa539b79
2 changed files with 22 additions and 18 deletions

6
day9/test.py Normal file → Executable file
View File

@@ -1,5 +1,7 @@
#!/usr/bin/env python3.11
import unittest
from common import OASISLine
import logging
class Day9Tests(unittest.TestCase):
@@ -13,5 +15,7 @@ class Day9Tests(unittest.TestCase):
extrapolation = map(lambda o: o.reduce().extrapolate_back(), analysis)
self.assertEqual(sum(extrapolation), 2)
if __name__ == "__main__":
unittest.main()
logging.basicConfig(level=logging.DEBUG)
unittest.main(verbosity=2)