Skip to content

Commit

Permalink
reverted changes to test_node_request_list
Browse files Browse the repository at this point in the history
  • Loading branch information
bodintsov committed Jan 14, 2025
1 parent 8f79cfd commit d007d63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api_tests/requests/views/test_node_request_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ def test_requests_disabled_list(self, app, url, create_payload, project, admin):
res = app.get(url, create_payload, auth=admin.auth, expect_errors=True)
assert res.status_code == 403

@mock.patch('website.mails.send_mail')
@mock.patch('website.mails.mails.send_mail')
def test_email_sent_to_all_admins_on_submit(self, mock_mail, app, project, noncontrib, url, create_payload, second_admin):
project.is_public = True
project.save()
res = app.post_json_api(url, create_payload, auth=noncontrib.auth)
assert res.status_code == 201
assert mock_mail.call_count == 2

@mock.patch('website.mails.send_mail')
@mock.patch('website.mails.mails.send_mail')
def test_email_not_sent_to_parent_admins_on_submit(self, mock_mail, app, project, noncontrib, url, create_payload, second_admin):
component = NodeFactory(parent=project, creator=second_admin)
component.is_public = True
Expand Down

0 comments on commit d007d63

Please sign in to comment.