30 lines
1.2 KiB
Python
30 lines
1.2 KiB
Python
from app.services.email_templates import build_employee_invitation_email
|
|
|
|
|
|
def test_employee_invitation_uses_gentic_branding():
|
|
subject, body_text, body_html = build_employee_invitation_email(
|
|
member_first_name="Anurag",
|
|
member_email="anurag@road.rentals",
|
|
manager_name="Suyash Dixit",
|
|
manager_email="suyash@road.rentals",
|
|
company_domain="road.rentals",
|
|
login_url="https://gentic.email/login",
|
|
initial_password="Roadrentals123",
|
|
force_password_change=True,
|
|
)
|
|
|
|
assert subject == "Suyash Dixit invited you to join road.rentals"
|
|
assert "AGMail" not in subject
|
|
assert "aGentic Email" not in subject
|
|
|
|
assert "aGentic Email" in body_text
|
|
assert "AGMail" not in body_text
|
|
assert "You are receiving this because Suyash Dixit invited you" in body_text
|
|
assert "cannot unsubscribe from required account emails" in body_text
|
|
assert "anurag@road.rentals" in body_text
|
|
|
|
assert "gentic.email" in body_html
|
|
assert "Work email invitation" in body_html
|
|
assert "invited you to join" in body_html
|
|
assert "Sign in to aGentic Email" in body_html
|
|
assert "AGMail" not in body_html
|