From c8bc38c62e86a6c834c82fbad78ab233515ead43 Mon Sep 17 00:00:00 2001 From: amercader Date: Thu, 28 Jun 2012 11:10:55 +0100 Subject: [PATCH] [#2389] Fix tests that were failing if 'error' was present on the JS strings --- ckan/tests/functional/test_group.py | 2 +- ckan/tests/functional/test_package.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ckan/tests/functional/test_group.py b/ckan/tests/functional/test_group.py index e71cd286b1e..8b89aa6c7d9 100644 --- a/ckan/tests/functional/test_group.py +++ b/ckan/tests/functional/test_group.py @@ -460,7 +460,7 @@ def test_1_do_diff(self): res = form.submit() res = res.follow() main_res = self.main_div(res) - assert 'error' not in main_res.lower(), main_res + assert 'form-errors' not in main_res.lower(), main_res assert 'Revision Differences' in main_res, main_res assert self.grp.name in main_res, main_res assert 'description
- Written by Puccini\n+ Written off
' in main_res, main_res diff --git a/ckan/tests/functional/test_package.py b/ckan/tests/functional/test_package.py index 33d88f4f22c..ffe423737fb 100644 --- a/ckan/tests/functional/test_package.py +++ b/ckan/tests/functional/test_package.py @@ -1446,7 +1446,7 @@ def test_1_do_diff(self): res = form.submit() res = res.follow() main_res = self.main_div(res) - assert 'error' not in main_res.lower(), main_res + assert 'form-errors' not in main_res.lower(), main_res assert 'Revision Differences' in main_res, main_res assert self.pkg1.name in main_res, main_res assert 'notes
- Written by Puccini\n+ Written off
' in main_res, main_res