Commit 0bf0af5b authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

astakos: Cache cleanup for recaptcha tests to work

parent 3a6c7968
......@@ -372,7 +372,7 @@ class TestLocal(TestCase):
@im_settings(RECAPTCHA_ENABLED=True, RATELIMIT_RETRIES_ALLOWED=3)
def test_login_ratelimit(self):
from django.core.cache import cache
[cache.delete(key) for key in cache._cache.keys()]
cache.clear()
credentials = {'username': 'γιού τι έφ', 'password': 'password'}
r = self.client.post(ui_url('local'), credentials, follow=True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment