|
10 | 10 | import notifications_library |
11 | 11 | import pytest |
12 | 12 | from models_library.products import ProductName |
13 | | -from notifications_library._models import ProductData, UserData, ProductUIData |
| 13 | +from notifications_library._models import ProductData, ProductUIData, UserData |
14 | 14 | from notifications_library.payments import PaymentData |
15 | 15 | from pydantic import EmailStr |
16 | 16 | from pytest_simcore.helpers.typing_env import EnvVarsDict |
@@ -56,17 +56,20 @@ def product_data( |
56 | 56 | vendor: Vendor = product["vendor"] |
57 | 57 |
|
58 | 58 | product_ui = ProductUIData( |
59 | | - logo_url=vendor.get('logo','https://raw.githubusercontent.com/ITISFoundation/osparc-simcore/refs/heads/master/services/static-webserver/client/source/resource/osparc/osparc-black.svg'), |
60 | | - strong_color=vendor.get('strong_color','rgb(131, 0, 191)'), |
| 59 | + logo_url=vendor.get( |
| 60 | + "logo", |
| 61 | + "https://raw.githubusercontent.com/ITISFoundation/osparc-simcore/refs/heads/master/services/static-webserver/client/source/resource/osparc/osparc-black.svg", |
| 62 | + ), |
| 63 | + strong_color=vendor.get("strong_color", "rgb(131, 0, 191)"), |
61 | 64 | ) |
62 | 65 |
|
63 | 66 | return ProductData( # type: ignore |
64 | 67 | product_name=product_name, |
65 | 68 | display_name=product["display_name"], |
66 | 69 | vendor_display_inline=f"{vendor.get('name','')}, {vendor.get('address','')}", |
67 | 70 | support_email=product["support_email"], |
68 | | - homepage_url=vendor.get('url','https://osparc.io/'), |
69 | | - ui=product_ui, |
| 71 | + homepage_url=vendor.get("url", "https://osparc.io/"), |
| 72 | + product_ui=product_ui, |
70 | 73 | ) |
71 | 74 |
|
72 | 75 |
|
|
0 commit comments