From 34c33549b896e07831cc834b9ec16967a71594f2 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 6 Apr 2020 12:00:28 -0400 Subject: [PATCH] Add tests for plugins caching config --- netbox/extras/tests/test_plugins.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/netbox/extras/tests/test_plugins.py b/netbox/extras/tests/test_plugins.py index 94c0a85f3..7cbe792d3 100644 --- a/netbox/extras/tests/test_plugins.py +++ b/netbox/extras/tests/test_plugins.py @@ -80,6 +80,12 @@ class PluginTest(TestCase): """ 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') def test_min_version(self): """