Can't run test_views_nodes.py in isolation

Bug #1262063 reported by Jeroen T. Vermeulen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Low
Jeroen T. Vermeulen

Bug Description

Running src/maasserver/tests/test_views_nodes.py by itself fails before any tests can execute:

    AlreadyRegistered: The model BootImage is already registered

The trigger for this seems to be this import statement:

from maasserver import messages

That import is needed only for TestGetLongpollContext, which seems like a bit of a subject onto itself. So we could shorten the test cycle for the node-related views considerably by moving that test out into its own file!

Related branches

Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
milestone: none → 14.04
Changed in maas:
importance: Undecided → Low
Changed in maas:
status: Fix Committed → Fix Released
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.