2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 01:55:39 +00:00

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
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):