From f8a8188d262824c176d77820ef0b013d97afc2ed Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Thu, 11 Jan 2018 17:42:22 +0000 Subject: [PATCH] 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. --- tests/test_setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_setup.py b/tests/test_setup.py index 3f9fbbdfc..454d3b6c5 100644 --- a/tests/test_setup.py +++ b/tests/test_setup.py @@ -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