mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	Fix locate plugin testing (#6946)
* cover locate again * add activation sequence
This commit is contained in:
		| @@ -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): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user