IQ.Pilot Release Commit @ d23cc80
This commit is contained in:
12
iqdbc_repo/iqdbc/lvbs/car/tests/test_car_catalog.py
Normal file
12
iqdbc_repo/iqdbc/lvbs/car/tests/test_car_catalog.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import json
|
||||
|
||||
from iqdbc.lvbs.car.car_catalog import build_car_catalog, CAR_LIST_JSON_OUT
|
||||
|
||||
|
||||
class TestCarList:
|
||||
def test_generator(self):
|
||||
generated_car_list = json.dumps(build_car_catalog(), 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/lvbs/car/car_catalog.py to update the car list"
|
||||
@@ -1,12 +0,0 @@
|
||||
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