mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-22 15:23:53 +08:00
* add pytest-asyncio * switch common * switch selfdrive * switch system * switch tools * small fixes * fix setUp and valgrind pytest * switch to setup * fix random * switch mock * switch test_lateral_limits * revert test_ui * fix poetry.lock * add unittest to banned-api * add inline ignores to remaining unittest imports * revert test_models * revert check_can_parser_performance * one more skip --------- Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
22 lines
517 B
Python
Executable File
22 lines
517 B
Python
Executable File
#!/usr/bin/env python3
|
|
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")
|
|
|
|
|
|
class TestAgnosUpdater:
|
|
|
|
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']
|