mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix locate plugin testing (#6946)
* cover locate again * add activation sequence
This commit is contained in:
parent
9839f64717
commit
7cbf99bea7
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user