Using the ViewTestBase.enable_routes in API tests causes the test_homeview to fail

Bug #1237025 reported by Richard Harding
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
charmworld
Triaged
Low
Unassigned

Bug Description

======================================================================
FAIL: Make sure the home view renders correctly.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/rharding/src/charmworld/charmworld/charmworld/views/tests/test_misc.py", line 64, in test_homeview
    self.fail('Cache-Control header not found.')
AssertionError: Cache-Control header not found.

----------------------------------------------------------------------

But only because of the tests in the api that enable routes. Comment out those tests and all passes. Move those tests until after the test_homeview and everything passes. Guilty code is in the tests:

def _setup_charm_with_icon(self, promulgated=False): ...

Curtis Hovey (sinzui)
Changed in charmworld:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.