Skip to content

Commit c05de31

Browse files
committed
adds tests
1 parent b52d076 commit c05de31

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

services/web/server/tests/unit/isolated/products/test_products_model.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

4448
def test_product_to_static():
4549

services/web/server/tests/unit/with_dbs/04/products/test_products_service.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def app(
3737

3838

3939
async 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)

0 commit comments

Comments
 (0)