Fixing tests

remotes/origin/enhancement/email-actions
Alejandro Alonso 2014-06-17 17:01:59 +02:00
parent 57e1de23dc
commit b78a412b46
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ def test_issue_resource_history_test(client):
assert qs_all.count() == 0 assert qs_all.count() == 0
with patch(mock_path) as m: with patch(mock_path) as m:
data = {"subject": "Fooooo"} data = {"subject": "Fooooo", "version": issue.version}
response = client.patch(url, json.dumps(data), content_type="application/json") response = client.patch(url, json.dumps(data), content_type="application/json")
assert response.status_code == 200 assert response.status_code == 200

View File

@ -218,7 +218,7 @@ def test_resource_notification_test(client, mail):
client.login(user1) client.login(user1)
with patch(mock_path) as m: with patch(mock_path) as m:
data = {"subject": "Fooooo"} data = {"subject": "Fooooo", "version": issue.version}
response = client.patch(url, json.dumps(data), content_type="application/json") response = client.patch(url, json.dumps(data), content_type="application/json")
assert len(mail.outbox) == 1 assert len(mail.outbox) == 1
assert response.status_code == 200 assert response.status_code == 200