Skip to content

Commit c769b23

Browse files
committed
minor
1 parent 81568d3 commit c769b23

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

packages/pytest-simcore/src/pytest_simcore/helpers/faker_factories.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ def random_product(
227227
"short_name": suffix[:4],
228228
"host_regex": r"[a-zA-Z0-9]+\.com",
229229
"support_email": f"support@{suffix}.io",
230+
"product_owners_email": fake.random_element(elements=[fake.email(), None]),
230231
"twilio_messaging_sid": fake.random_element(elements=(None, fake.uuid4()[:34])),
231232
"vendor": Vendor(
232233
name=fake.company(),

services/web/server/src/simcore_service_webserver/login/_registration_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async def send_account_request_email_to_support(
8181
template=email_template_path,
8282
context={
8383
"host": request.host,
84-
"name": "support-team",
84+
"name": "product-owners",
8585
"product": product.model_dump(
8686
include={
8787
"name",

services/web/server/tests/unit/with_dbs/03/login/test_login_registration_handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,4 +208,4 @@ async def test_request_an_account(
208208
mimetext = mocked_send_email.call_args[1]["message"]
209209
assert "account" in mimetext["Subject"].lower()
210210
assert mimetext["From"] == product.support_email
211-
assert mimetext["To"] == product.support_email
211+
assert mimetext["To"] == product.product_owners_email or product.support_email

0 commit comments

Comments
 (0)