Skip to content

Commit

Permalink
Debug failing Travis test
Browse files Browse the repository at this point in the history
  • Loading branch information
maiksprenger committed Feb 20, 2015
1 parent 9f0bead commit 5d7d08d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/functional/catalogue/catalogue_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ def test_can_chop_off_last_part_of_url(self):
full_url = child_category.get_absolute_url()
chopped_url = full_url.rsplit('/', 2)[0]
parent_url = self.category.get_absolute_url()
response = self.app.get(chopped_url).follow() # fails if no redirect
print child_category.slug, full_url, chopped_url, parent_url
response = self.app.get(chopped_url)
self.assertIsRedirect(response)
self.assertTrue(response.url.endswith(parent_url))


0 comments on commit 5d7d08d

Please sign in to comment.