[PATCH 28/46] test_list: Fix the order tests
Damien Lespiau
damien.lespiau at intel.com
Sun Nov 9 06:08:46 AEDT 2014
The list redesign removed a space in the generated HTML, which made the
tests depending on parsing the id attribute of <tr> fail.
Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
apps/patchwork/tests/test_list.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/patchwork/tests/test_list.py b/apps/patchwork/tests/test_list.py
index a795a5f..7e5bf51 100644
--- a/apps/patchwork/tests/test_list.py
+++ b/apps/patchwork/tests/test_list.py
@@ -69,7 +69,7 @@ class PatchOrderTest(TestCase):
patch.save()
def _extract_patch_ids(self, response):
- id_re = re.compile('<tr id="patch_row:(\d+)" ')
+ id_re = re.compile('<tr id="patch_row:(\d+)"')
ids = [ int(m.group(1)) for m in id_re.finditer(response.content) ]
return ids
--
1.8.3.1
More information about the Patchwork
mailing list