IQ.Pilot Release Commit @ 9fe0487
This commit is contained in:
3
iqdbc_repo/iqdbc/lvbs/car/tests/__init__.py
Normal file
3
iqdbc_repo/iqdbc/lvbs/car/tests/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
"""
|
||||
Copyright © IQ.Lvbs, apart of Project Teal Lvbs, All Rights Reserved, licensed under https://konn3kt.com/tos
|
||||
"""
|
||||
12
iqdbc_repo/iqdbc/lvbs/car/tests/test_car_list.py
Normal file
12
iqdbc_repo/iqdbc/lvbs/car/tests/test_car_list.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import json
|
||||
|
||||
from iqdbc.lvbs.car.platform_list import get_car_list, CAR_LIST_JSON_OUT
|
||||
|
||||
|
||||
class TestCarList:
|
||||
def test_generator(self):
|
||||
generated_car_list = json.dumps(get_car_list(), indent=2, ensure_ascii=False)
|
||||
with open(CAR_LIST_JSON_OUT) as f:
|
||||
current_car_list = f.read()
|
||||
|
||||
assert generated_car_list == current_car_list, "Run iqdbc/iqpilot/car/platform_list.py to update the car list"
|
||||
Reference in New Issue
Block a user