pytest: strict config (#29676)

* pytest: strict config

* collection works

* fixes
This commit is contained in:
Adeeb Shihadeh
2023-08-28 10:26:19 -07:00
committed by GitHub
parent c36774dfba
commit 72e2e2c9ec
4 changed files with 48 additions and 30 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)