Fix locate plugin testing (#6946)

* cover locate again

* add activation sequence
This commit is contained in:
Matthias Mair 2024-04-03 23:08:56 +01:00 committed by GitHub
parent 9839f64717
commit 7cbf99bea7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View File

@ -11,6 +11,15 @@ from stock.models import StockItem, StockLocation
class LocatePluginTests(InvenTreeAPITestCase):
"""Tests for LocateMixin."""
def setUp(self):
"""Set up the test case."""
super().setUp()
# Activate plugin
config = registry.get_plugin('samplelocate').plugin_config()
config.active = True
config.save()
fixtures = ['category', 'part', 'location', 'stock']
def test_installed(self):