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:
Ed Morley 2018-01-11 17:42:22 +00:00
Родитель 578e186fe9
Коммит f8a8188d26
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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