mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	Update unit tests
This commit is contained in:
		@@ -1184,18 +1184,8 @@ class TestSettings(InvenTreeTestCase):
 | 
				
			|||||||
        """Test if install of plugins on startup works."""
 | 
					        """Test if install of plugins on startup works."""
 | 
				
			||||||
        from plugin import registry
 | 
					        from plugin import registry
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if not settings.DOCKER:
 | 
					        registry.reload_plugins(full_reload=True, collect=True)
 | 
				
			||||||
            # Check an install run
 | 
					        self.assertGreater(len(settings.PLUGIN_FILE_HASH), 0)
 | 
				
			||||||
            response = registry.install_plugin_file()
 | 
					 | 
				
			||||||
            self.assertEqual(response, 'first_run')
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            # Set dynamic setting to True and rerun to launch install
 | 
					 | 
				
			||||||
            InvenTreeSetting.set_setting('PLUGIN_ON_STARTUP', True, self.user)
 | 
					 | 
				
			||||||
            registry.reload_plugins(full_reload=True)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        # Check that there was another run
 | 
					 | 
				
			||||||
        response = registry.install_plugin_file()
 | 
					 | 
				
			||||||
        self.assertEqual(response, True)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def test_helpers_cfg_file(self):
 | 
					    def test_helpers_cfg_file(self):
 | 
				
			||||||
        """Test get_config_file."""
 | 
					        """Test get_config_file."""
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user