mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 01:48:38 -06:00
Add tests for plugins caching config
This commit is contained in:
parent
76230cad53
commit
34c33549b8
@ -80,6 +80,12 @@ class PluginTest(TestCase):
|
|||||||
"""
|
"""
|
||||||
self.assertIn('extras.tests.dummy_plugin.middleware.DummyMiddleware', settings.MIDDLEWARE)
|
self.assertIn('extras.tests.dummy_plugin.middleware.DummyMiddleware', settings.MIDDLEWARE)
|
||||||
|
|
||||||
|
def test_caching_config(self):
|
||||||
|
"""
|
||||||
|
Check that plugin caching configuration is registered.
|
||||||
|
"""
|
||||||
|
self.assertIn('extras.tests.dummy_plugin.*', settings.CACHEOPS)
|
||||||
|
|
||||||
@override_settings(VERSION='0.9')
|
@override_settings(VERSION='0.9')
|
||||||
def test_min_version(self):
|
def test_min_version(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user