feat(security): add approved rooms/users/domains as env variables #277

Merged
luketainton merged 5 commits from 276-add-approved-usersdomains-as-an-environment-variable into main 2024-08-30 20:38:57 +02:00
Showing only changes of commit 70ac601064 - Show all commits

View File

@ -6,15 +6,18 @@ from app.utils.helpers import validate_email_syntax # pragma: no cover
def test_validate_email_syntax_true() -> None: def test_validate_email_syntax_true() -> None:
"""Test validate_email_syntax() with a real email address."""
email: str = "test@test.com" email: str = "test@test.com"
assert validate_email_syntax(email) assert validate_email_syntax(email)
def test_validate_email_syntax_false1() -> None: def test_validate_email_syntax_false1() -> None:
"""Test validate_email_syntax() with an invalid email address."""
email: str = "test@test" email: str = "test@test"
assert not validate_email_syntax(email) assert not validate_email_syntax(email)
def test_validate_email_syntax_false2() -> None: def test_validate_email_syntax_false2() -> None:
"""Test validate_email_syntax() with an invalid email address."""
email: str = "test" email: str = "test"
assert not validate_email_syntax(email) assert not validate_email_syntax(email)