1010import notifications_library
1111import pytest
1212from models_library .products import ProductName
13- from notifications_library ._models import ProductData , UserData
13+ from notifications_library ._models import ProductData , UserData , ProductUIData
1414from notifications_library .payments import PaymentData
1515from pydantic import EmailStr
1616from pytest_simcore .helpers .typing_env import EnvVarsDict
@@ -44,7 +44,7 @@ def external_envfile_dict(external_envfile_dict: EnvVarsDict) -> EnvVarsDict:
4444
4545
4646#
47- # mock data for templaes
47+ # mock data for templates
4848#
4949
5050
@@ -55,14 +55,18 @@ def product_data(
5555) -> ProductData :
5656 vendor : Vendor = product ["vendor" ]
5757
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)' ),
61+ )
62+
5863 return ProductData ( # type: ignore
5964 product_name = product_name ,
6065 display_name = product ["display_name" ],
6166 vendor_display_inline = f"{ vendor .get ('name' ,'' )} , { vendor .get ('address' ,'' )} " ,
6267 support_email = product ["support_email" ],
63- logo = vendor .get ('logo' ,'https://raw.githubusercontent.com/ITISFoundation/osparc-simcore/refs/heads/master/services/static-webserver/client/source/resource/osparc/osparc-black.svg' ),
64- homepage = vendor .get ('url' ,'https://osparc.io/' ),
65- strong_color = vendor .get ('strong_color' ,'rgb(131, 0, 191)' ),
68+ homepage_url = vendor .get ('url' ,'https://osparc.io/' ),
69+ ui = product_ui ,
6670 )
6771
6872
0 commit comments