Skip to content

Commit 0510b7f

Browse files
committed
fix tests
1 parent e220bfd commit 0510b7f

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

test/model/test_plugins_model.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,15 @@
3535

3636

3737
class 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")

0 commit comments

Comments
 (0)