]> git.ozlabs.org Git - patchwork/commit
tests: Fix 'order_start' on BundleReorderTest unit test
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 13 Aug 2009 20:21:23 +0000 (17:21 -0300)
committerJeremy Kerr <jk@ozlabs.org>
Sat, 15 Aug 2009 03:17:10 +0000 (13:17 +1000)
commitfc58a911d4a43d6e0b06a1bd2e397e5448a591a7
treeddc438e375ae0f3f11928468bf21ce42d639d777
parent7d9334e879857f8a380bc9509b6cbf9972cecc25
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>
apps/patchwork/tests/bundles.py