1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

feat: Netbox plugin can defined their own RQ queues

This commit is contained in:
maximumG
2021-07-07 15:26:33 +02:00
parent 8b76db2bca
commit 995aa65f16
3 changed files with 16 additions and 0 deletions

View File

@ -86,6 +86,14 @@ class PluginTest(TestCase):
"""
self.assertIn('extras.tests.dummy_plugin.*', settings.CACHEOPS)
def test_queues(self):
"""
Check that plugin queues are registered with the accurate name.
"""
self.assertIn('extras.tests.dummy_plugin.testing-low', settings.RQ_QUEUES)
self.assertIn('extras.tests.dummy_plugin.testing-medium', settings.RQ_QUEUES)
self.assertIn('extras.tests.dummy_plugin.testing-high', settings.RQ_QUEUES)
def test_min_version(self):
"""
Check enforcement of minimum NetBox version.