Clear cache for more unit tests (#3184)

This commit is contained in:
Oliver authored and GitHub committed 2022-06-12 12:58:40 +10:00
1 parent 6eddcd3c23
commit 1ae6bde896
2 files changed
+11

No files matched your search

+5
View File
@@ -245,6 +245,11 @@ class SettingsTest(InvenTreeTestCase):
class GlobalSettingsApiTest(InvenTreeAPITestCase):
"""Tests for the global settings API."""
def setUp(self):
"""Ensure cache is cleared as part of test setup"""
cache.clear()
return super().setUp()
def test_global_settings_api_list(self):
"""Test list URL for global settings."""
url = reverse('api-global-setting-list')