diff rhodecode/tests/api/api_base.py @ 3759:12ca667b69b6 beta

api: don't report invalidated cache_keys after invalidating a repo The keys are an implementation detail and is never relevant outside RhodeCode internals and should not be leaked.
author Mads Kiilerich <madski@unity3d.com>
date Wed, 03 Apr 2013 15:56:12 +0200
parents 7e3d89d9d3a2
children 60335b702a00
line wrap: on
line diff
--- a/rhodecode/tests/api/api_base.py	Mon Apr 15 20:44:18 2013 +0200
+++ b/rhodecode/tests/api/api_base.py	Wed Apr 03 15:56:12 2013 +0200
@@ -268,9 +268,7 @@
                                   repoid=self.REPO)
         response = api_call(self, params)
 
-        expected = ("Cache for repository `%s` was invalidated: "
-                    "invalidated cache keys: %s" % (self.REPO,
-                                                    [unicode(self.REPO)]))
+        expected = ("Caches of repository `%s` was invalidated" % (self.REPO))
         self._compare_ok(id_, expected, given=response.body)
 
     @mock.patch.object(ScmModel, 'mark_for_invalidation', crash)