We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17d1c97 commit 177d37cCopy full SHA for 177d37c
tests/test_cli.py
@@ -117,8 +117,10 @@ def mock_get_config_path():
117
return config_path
118
monkeypatch.setattr(utils, "get_config_path", mock_get_config_path)
119
120
- # Mock Path.exists for the specific config_path instance
121
- config_path.exists = mock.Mock(return_value=True)
+ # Mock Path.exists to return True
+ def mock_exists(self):
122
+ return True
123
+ monkeypatch.setattr(Path, "exists", mock_exists)
124
125
# Execute init command
126
args = mock.Mock()
0 commit comments