Skip to content

Commit

Permalink
Fix backend test (unrelated)
Browse files Browse the repository at this point in the history
  • Loading branch information
NEStock committed Mar 4, 2025
1 parent bdc3964 commit 6401146
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dandiapi/api/tests/test_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ def test_user_registration_email_content(
assert len(mailoutbox) == 2

email = mailoutbox[0]
assert email.subject == f'DANDI: New user registered: {user.email}'
assert email.subject == f'EMBER-DANDI: New user registered: {user.email}'
assert email.to == [ADMIN_EMAIL, user.email]
assert '<p>' not in email.body
assert all(len(_) < 100 for _ in email.body.splitlines())

email = mailoutbox[1]
assert email.subject == f'DANDI: Review new user: {user.username}'
assert email.subject == f'EMBER-DANDI: Review new user: {user.username}'
assert email.to == [ADMIN_EMAIL]
assert '<p>' not in email.body
assert all(len(_) < 100 for _ in email.body.splitlines())
Expand Down

0 comments on commit 6401146

Please sign in to comment.