Merge lp:~rvb/maas/bug-1013275 into lp:maas/trunk
| Status: | Merged |
|---|---|
| Approved by: | Raphaël Badin on 2012-06-15 |
| Approved revision: | 646 |
| Merged at revision: | 645 |
| Proposed branch: | lp:~rvb/maas/bug-1013275 |
| Merge into: | lp:maas/trunk |
| Diff against target: |
41 lines (+3/-6) 3 files modified
src/maasserver/tests/test_preseed.py (+1/-1) src/maasserver/tests/test_views_nodes.py (+1/-4) templates/test_module.py (+1/-1) |
| To merge this branch: | bzr merge lp:~rvb/maas/bug-1013275 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Jeroen T. Vermeulen (community) | 2012-06-15 | Approve on 2012-06-15 | |
|
Review via email:
|
|||
Commit Message
Fix test_node_
Description of the Change
This branch fixes bug 1013275. I've used the wrong test case in test_preseed.py and the database wasn't cleared at the end of the test. D'oh!
- 646. By Raphaël Badin on 2012-06-15
-
Update templates/
test_module. py.
| Raphaël Badin (rvb) wrote : | # |
> How I hate these failures! There ought to be something we can do to prevent
> this. Maybe we can start by changing templates/
> longer suggests maastesting.
I've updated the template, we use the DB in tests most of the times so it seems more logical to propose using maasserver.
| Julian Edwards (julian-edwards) wrote : | # |
On Friday 15 June 2012 07:17:31 you wrote:
> Review: Approve
>
> How I hate these failures! There ought to be something we can do to prevent
> this. Maybe we can start by changing templates/
> no longer suggests maastesting.
>
>
> Jeroen
I have 2 more suggestions:
1. Rename the test cases so that they are not all TestCase. Make their names
mean something.
2. Make the non-DB test cases cause failures immediately if you try to access
the DB.


How I hate these failures! There ought to be something we can do to prevent this. Maybe we can start by changing templates/ test_module. py so that it no longer suggests maastesting. testcase by default.
Jeroen