Fixing tests
parent
57e1de23dc
commit
b78a412b46
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue