Commit fc58a911 authored by Eduardo Habkost's avatar Eduardo Habkost Committed by Jeremy Kerr
Browse files

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: default avatarEduardo Habkost <ehabkost@redhat.com>
Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
parent 7d9334e8
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment