Fix tests

remotes/origin/issue/4795/notification_even_they_are_disabled
David Barragán Merino 2016-08-02 18:01:12 +02:00
parent 3187bdfed9
commit baab2552ab
1 changed files with 2 additions and 2 deletions

View File

@ -312,7 +312,7 @@ def test_api_update_milestone_in_bulk_invalid_milestone(client):
response = client.json.post(url, json.dumps(data))
assert response.status_code == 400
assert response.data["non_field_errors"][0] == "the milestone isn't valid for the project"
assert len(response.data["non_field_errors"]) == 1
def test_api_update_milestone_in_bulk_invalid_userstories(client):
@ -334,7 +334,7 @@ def test_api_update_milestone_in_bulk_invalid_userstories(client):
response = client.json.post(url, json.dumps(data))
assert response.status_code == 400
assert response.data["non_field_errors"][0] == "all the user stories must be from the same project"
assert len(response.data["non_field_errors"]) == 1
def test_update_userstory_points(client):