Skip to content

Commit

Permalink
flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Dec 4, 2024
1 parent 09397af commit 9adac50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lacommunaute/users/tests/tests_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ def validate_magiclink_payload(payload_as_str, uidb64, token, expected):

class TestSendMagicLink:
@pytest.mark.parametrize("env,count_msg", [(Environment.PROD, 0), (Environment.DEV, 1)])
def test_send_magic_link(self, db, user, snapshot, mock_respx_post_to_sib_smtp_url, env, count_msg):
def test_send_magic_link(
self, db, user, snapshot, mock_token_generator, mock_respx_post_to_sib_smtp_url, env, count_msg
):
with override_settings(ENVIRONMENT=env):
next_url = "/topics/"
request = RequestFactory().get("/")
Expand Down

0 comments on commit 9adac50

Please sign in to comment.