From b78a412b46e7436c8486ea14ab93a81fbafd3ffa Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Tue, 17 Jun 2014 17:01:59 +0200 Subject: [PATCH] Fixing tests --- tests/integration/test_project_history.py | 2 +- tests/integration/test_project_notifications.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_project_history.py b/tests/integration/test_project_history.py index 23a8eb4c..6b0312ae 100644 --- a/tests/integration/test_project_history.py +++ b/tests/integration/test_project_history.py @@ -140,7 +140,7 @@ def test_issue_resource_history_test(client): assert qs_all.count() == 0 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") assert response.status_code == 200 diff --git a/tests/integration/test_project_notifications.py b/tests/integration/test_project_notifications.py index af71c25b..a59c27e5 100644 --- a/tests/integration/test_project_notifications.py +++ b/tests/integration/test_project_notifications.py @@ -218,7 +218,7 @@ def test_resource_notification_test(client, mail): client.login(user1) 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") assert len(mail.outbox) == 1 assert response.status_code == 200