mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-14 18:23:14 +00:00
Update tests
This commit is contained in:
parent
064aaa654b
commit
4b49c0ea9e
1 changed files with 4 additions and 2 deletions
|
|
@ -25,7 +25,8 @@ class TestBackendConfiguration(TestCase):
|
|||
self.assertEqual(set(backends.keys()), set(['varnish']))
|
||||
self.assertIsInstance(backends['varnish'], HTTPBackend)
|
||||
|
||||
self.assertEqual(backends['varnish'].cache_location, 'http://localhost:8000')
|
||||
self.assertEqual(backends['varnish'].cache_scheme, 'http')
|
||||
self.assertEqual(backends['varnish'].cache_netloc, 'localhost:8000')
|
||||
|
||||
def test_cloudflare(self):
|
||||
backends = get_backends(backend_settings={
|
||||
|
|
@ -78,7 +79,8 @@ class TestBackendConfiguration(TestCase):
|
|||
|
||||
self.assertEqual(set(backends.keys()), set(['default']))
|
||||
self.assertIsInstance(backends['default'], HTTPBackend)
|
||||
self.assertEqual(backends['default'].cache_location, 'http://localhost:8000')
|
||||
self.assertEqual(backends['default'].cache_scheme, 'http')
|
||||
self.assertEqual(backends['default'].cache_netloc, 'localhost:8000')
|
||||
|
||||
|
||||
PURGED_URLS = []
|
||||
|
|
|
|||
Loading…
Reference in a new issue