f8e13417f2
date: 2026-08-15T14:20:10 master commit: d48cfa730bf21593b684efeaf3fd8940695e1dea
22 lines
565 B
Python
22 lines
565 B
Python
import json
|
|
import os
|
|
import requests
|
|
|
|
TEST_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)))
|
|
MANIFEST = os.path.join(TEST_DIR, "../agnos.json")
|
|
|
|
|
|
from openpilot.common.test import OpenpilotTestCase
|
|
class TestAgnosUpdater(OpenpilotTestCase):
|
|
|
|
def test_manifest(self):
|
|
with open(MANIFEST) as f:
|
|
m = json.load(f)
|
|
|
|
for img in m:
|
|
r = requests.head(img['url'], timeout=10)
|
|
r.raise_for_status()
|
|
assert r.headers['Content-Type'] == "application/x-xz"
|
|
if not img['sparse']:
|
|
assert img['hash'] == img['hash_raw']
|