From fc58a911d4a43d6e0b06a1bd2e397e5448a591a7 Mon Sep 17 00:00:00 2001 From: Eduardo Habkost Date: Thu, 13 Aug 2009 17:21:23 -0300 Subject: [PATCH] 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 Signed-off-by: Jeremy Kerr --- apps/patchwork/tests/bundles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.39.2