Skip to content

Commit

Permalink
Update test conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
alastair committed Apr 6, 2022
1 parent fd72c34 commit 558be13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions critiquebrainz/frontend/views/test/test_review.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def test_edit_draft_without_changes(self):
follow_redirects=True
)
self.assert200(response)
self.assertIn('You must edit either text or rating to update the review.', str(response.data))
self.assertIn('You must edit either text or rating to update the draft.', str(response.data))

# test publishing draft review without changes does not cause error
data["state"] = "publish"
Expand All @@ -178,7 +178,7 @@ def test_edit_draft_without_changes(self):
follow_redirects=True
)
self.assert200(response)
self.assertNotIn('You must edit either text or rating to update the review.', str(response.data))
self.assertNotIn('You must edit either text or rating to update the draft.', str(response.data))

def test_edit(self):
updated_text = "The text has now been updated"
Expand Down

0 comments on commit 558be13

Please sign in to comment.