mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-12-02 17:43:40 +08:00
Isolate Laboratory tests from bundled model verification
This commit is contained in:
@@ -6,6 +6,7 @@ from pathlib import Path
|
||||
import tempfile
|
||||
import time
|
||||
import unittest
|
||||
from unittest.mock import patch
|
||||
|
||||
from openpilot.starpilot.models.catalog import ARTIFACT_ABI, CATALOG_PATH, COMPILER_REVISION
|
||||
from openpilot.starpilot.models.laboratory import ModelLaboratory, configuration
|
||||
@@ -17,6 +18,7 @@ class LaboratoryTest(unittest.TestCase):
|
||||
self.temp = tempfile.TemporaryDirectory()
|
||||
self.addCleanup(self.temp.cleanup)
|
||||
self.root = Path(self.temp.name)
|
||||
self.enterContext(patch('openpilot.starpilot.models.manager.SHIPPED_MODELS', self.root / 'shipped'))
|
||||
self.parked = True
|
||||
self.gpu = False
|
||||
self.manifest = json.loads(CATALOG_PATH.read_text())
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"protected_inventory_sha256": "0211afd188b3c8a41965352bd7817c834d718c71aa4daf20581ab71d0ad74cc3", "schema_version": 1}
|
||||
{"protected_inventory_sha256": "932e23abff9007da157347112d5d4230375c1867e26c97f6593fbb8ab9b8c357", "schema_version": 1}
|
||||
|
||||
Reference in New Issue
Block a user