示例#1
0
 def setUp(self):
     PluginRegister.clean_up_registered_plugins()
     ProjectSettings.clear()
     ThemeSettings.clear()
     ShareData.clear()
     #force reload
     for key in ['test_theme1', 'test_theme1.plugin',
                 'test_theme2', 'test_theme2.plugin']:
         if key in sys.modules:
             del sys.modules[key]
示例#2
0
    def setUp(self):
        ShareData.clear()
        ProjectSettings.clear()
        ThemeSettings.clear()
        PluginRegister.clean_up_registered_plugins()

        self.project_path = os.path.join(
            os.getcwd(),
            'tests/cases/project',
        )