File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
services/web/server/tests/unit Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ def test_all_products_models_examples(
40
40
if "registration_email_template" in example_data :
41
41
assert model_instance .get_template_name_for ("registration_email.jinja2" )
42
42
43
+ if model_instance .vendor and "ui" in model_instance .vendor :
44
+ assert model_instance .vendor ["ui" ]["strong_color" ]
45
+ assert model_instance .vendor ["ui" ]["logo_url" ]
46
+
43
47
44
48
def test_product_to_static ():
45
49
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ def app(
37
37
38
38
39
39
async def test_load_products (app : web .Application ):
40
+ # TODO: add more products
40
41
products = await _service .load_products (app )
41
42
assert isinstance (products , list )
42
43
assert all (isinstance (product , Product ) for product in products )
You can’t perform that action at this time.
0 commit comments