зеркало из https://github.com/mozilla/treeherder.git
Bug 1384518 - Tests: Clean up cache testing in test_setup.py
* Adjusts the test name and docstring, since there is nothing memcached-specific about the test. * Overrides the default timeout of never to 10 seconds, to prevent previous test run values persisting.
This commit is contained in:
Родитель
578e186fe9
Коммит
f8a8188d26
|
@ -26,10 +26,10 @@ def test_no_missing_migrations():
|
|||
call_command('makemigrations', interactive=False, dry_run=True, check_changes=True)
|
||||
|
||||
|
||||
def test_memcached_setup():
|
||||
"Test memcached is properly setup"
|
||||
def test_django_cache():
|
||||
"""Test the Django cache backend & associated server are properly set up."""
|
||||
k, v = 'my_key', 'my_value'
|
||||
cache.set(k, v)
|
||||
cache.set(k, v, 10)
|
||||
assert cache.get(k) == v
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче