1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-05-09 11:10:05 +00:00

Don't actually try to send test email in test.

This commit is contained in:
Nigel Gott 2023-05-15 14:32:31 +01:00
parent 7493187bff
commit 3ee195a9b6

View file

@ -28,7 +28,10 @@ def test_non_staff_user_cant_trigger_test_email(data_fixture, api_client):
@pytest.mark.django_db
def test_staff_user_can_trigger_test_email(data_fixture, api_client):
@patch("django.core.mail.get_connection")
def test_staff_user_can_trigger_test_email(
patched_get_connection, data_fixture, api_client
):
user, token = data_fixture.create_user_and_token(is_staff=True)
response = api_client.post(