diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2009-08-13 17:21:23 -0300 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2009-08-15 13:17:10 +1000 |
commit | fc58a911d4a43d6e0b06a1bd2e397e5448a591a7 (patch) | |
tree | ddc438e375ae0f3f11928468bf21ce42d639d777 /apps/patchwork/tests | |
parent | 7d9334e879857f8a380bc9509b6cbf9972cecc25 (diff) | |
download | patchwork-fc58a911d4a43d6e0b06a1bd2e397e5448a591a7.tar.bz2 patchwork-fc58a911d4a43d6e0b06a1bd2e397e5448a591a7.tar.xz |
tests: Fix 'order_start' on BundleReorderTest unit test
The 'order_start' parameter on the reorder form should be a patch ID,
not the 'order' field of BundlePatch.
This fixes the following test failure:
> ======================================================================
> FAIL: testBundleReorder (patchwork.tests.bundles.BundleReorderTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/mnt/common/code/admin/rh-patchwork/apps/patchwork/tests/bundles.py", line 358, in testBundleReorder
> self.failUnlessEqual(response.status_code, 200)
> AssertionError: 404 != 200
>
> ----------------------------------------------------------------------
> Ran 123 tests in 4.527s
>
> FAILED (failures=1)
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps/patchwork/tests')
-rw-r--r-- | apps/patchwork/tests/bundles.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/patchwork/tests/bundles.py b/apps/patchwork/tests/bundles.py index 4e8fe2b..2e4c8fa 100644 --- a/apps/patchwork/tests/bundles.py +++ b/apps/patchwork/tests/bundles.py @@ -349,7 +349,7 @@ class BundleReorderTest(BundleTestBase): neworder_ids = [ p.id for p in neworder ] params = {'form': 'reorderform', - 'order_start': bundlepatch.order, + 'order_start': bundlepatch.patch.id, 'neworder': neworder_ids} response = self.client.post('/user/bundle/%d/' % self.bundle.id, |