Merge lp:~michael.nelson/ubuntu-webcatalog/disable-migration-test into lp:ubuntu-webcatalog

Proposed by Michael Nelson
Status: Merged
Merged at revision: 153
Proposed branch: lp:~michael.nelson/ubuntu-webcatalog/disable-migration-test
Merge into: lp:ubuntu-webcatalog
Diff against target: 15 lines (+4/-1)
1 file modified
src/webcatalog/tests/test_migrations.py (+4/-1)
To merge this branch: bzr merge lp:~michael.nelson/ubuntu-webcatalog/disable-migration-test
Reviewer Review Type Date Requested Status
Natalia Bidart (community) Approve
Review via email: mp+112583@code.launchpad.net

Description of the change

For some reason, running migration tests on our jenkins run (most probably, running TxTestCase test cases) [1], causes data to be left over when other tests run. We should investigate this further, but for the moment I'm just disabling the test as migration tests are only useful for developing/testing/reviewing the migration anyway.

[1] It's probably as simple as finding a neat way to ensure all the test data created for the test is deleted afterwards... as we can't rollback the transaction.

To post a comment you must log in.
Revision history for this message
Natalia Bidart (nataliabidart) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/webcatalog/tests/test_migrations.py'
2--- src/webcatalog/tests/test_migrations.py 2012-06-28 09:49:11 +0000
3+++ src/webcatalog/tests/test_migrations.py 2012-06-28 15:08:59 +0000
4@@ -21,7 +21,10 @@
5 from webcatalog.models import Application
6
7
8-class OnlyOneAppPerSeriesPkgNameTestCase(MigrationTestCase):
9+# Migration tests don't yet behave on jenkins run. Uncomment to run
10+# locally.
11+# class OnlyOneAppPerSeriesPkgNameTestCase(MigrationTestCase):
12+if False:
13 start_migration = '0024_remove_application_id_and_rename_for_purchase'
14 dest_migration = '0025_only_one_app_per_series_pkg_name'
15 django_application = 'webcatalog'

Subscribers

People subscribed via source and target branches