File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 3535
3636
3737class TestPluginsModel (unittest .TestCase ):
38- @patch ("os.path.join" )
39- @patch ("pathlib.Path.resolve" )
40- def test_initialization (self , mock_resolve , mock_join ):
41- mock_resolve .return_value .parent .parent = "mocked_path"
42- mock_join .return_value = "mocked_path/plugins"
43- model = PluginsModel ()
44- self .assertEqual (model .plugins_path , "mocked_path/plugins" )
38+
39+ # comment this testcase since plugin_model doesn't have plugins_path now
40+ # @patch("os.path.join")
41+ # @patch("pathlib.Path.resolve")
42+ # def test_initialization(self, mock_resolve, mock_join):
43+ # mock_resolve.return_value.parent.parent = "mocked_path"
44+ # mock_join.return_value = "mocked_path/plugins"
45+ # model = PluginsModel()
46+ # self.assertEqual(model.plugins_path, "mocked_path/plugins")
4547
4648 @patch ("navigate.config.config.get_navigate_path" )
4749 @patch ("os.makedirs" )
You can’t perform that action at this time.
0 commit comments