Pytest: consistent codecov (#30408)

* seed only

* random seed

* ignore version.py

* increase max examples

* increase default max examples
This commit is contained in:
Justin Newberry
2023-11-08 16:43:32 -05:00
committed by GitHub
parent 4967377b3f
commit d02dd50749
4 changed files with 7 additions and 3 deletions
+3
View File
@@ -1,5 +1,6 @@
import os
import pytest
import random
from openpilot.common.prefix import OpenpilotPrefix
from openpilot.system.hardware import TICI
@@ -9,6 +10,8 @@ from openpilot.system.hardware import TICI
def openpilot_function_fixture():
starting_env = dict(os.environ)
random.seed(0)
# setup a clean environment for each test
with OpenpilotPrefix():
prefix = os.environ["OPENPILOT_PREFIX"]