pytest: strict config (#29676)

* pytest: strict config

* collection works

* fixes
old-commit-hash: 72e2e2c9ec4e3a42cf35c23dfc0d66ea0565ace6
This commit is contained in:
Adeeb Shihadeh
2023-08-28 10:26:19 -07:00
committed by GitHub
parent 3627574114
commit cc29c6640d
4 changed files with 19 additions and 18 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ from openpilot.system.loggerd.uploader import uploader_fn, UPLOAD_ATTR_NAME, UPL
from openpilot.system.loggerd.tests.loggerd_tests_common import UploaderTestCase
class TestLogHandler(logging.Handler):
class FakeLogHandler(logging.Handler):
def __init__(self):
logging.Handler.__init__(self)
self.reset()
@@ -33,7 +33,7 @@ class TestLogHandler(logging.Handler):
except Exception:
pass
log_handler = TestLogHandler()
log_handler = FakeLogHandler()
cloudlog.addHandler(log_handler)