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(
4040 if "registration_email_template" in example_data :
4141 assert model_instance .get_template_name_for ("registration_email.jinja2" )
4242
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+
4347
4448def test_product_to_static ():
4549
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ def app(
3737
3838
3939async def test_load_products (app : web .Application ):
40+ # TODO: add more products
4041 products = await _service .load_products (app )
4142 assert isinstance (products , list )
4243 assert all (isinstance (product , Product ) for product in products )
You can’t perform that action at this time.
0 commit comments