tests: fixing changelog test for new notifications

This commit is contained in:
lisaq 2016-09-21 13:15:51 +02:00
parent 0ea6b37e8b
commit cde9d17915

View file

@ -82,8 +82,7 @@ class TestChangelogController(TestController):
assert expected_url in response.location
response = response.follow()
expected_warning = 'Branch {} is not found.'.format(branch)
assert_response = AssertResponse(response)
assert_response.element_contains('.alert-warning', expected_warning)
assert expected_warning in response.body
def assert_commits_on_page(self, response, indexes):
found_indexes = [int(idx) for idx in MATCH_HASH.findall(response.body)]