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:
parent
7493187bff
commit
3ee195a9b6
1 changed files with 4 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue