mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2025-12-26 16:57:23 +01:00
mocker.patch('helpers.Project.File')
This commit is contained in:
@@ -36,8 +36,9 @@ project.app = 'test'
|
||||
# 'None path absolute file', 'home path', 'home path same name', 'absolute path with name'
|
||||
])
|
||||
# @patch('helpers.Project.update_file')
|
||||
@patch('helpers.Project.File')
|
||||
def test_save_file(mock_file_insert,
|
||||
# @patch('helpers.Project.File')
|
||||
def test_save_file(
|
||||
# mock_file_insert,
|
||||
# mock_update_file,
|
||||
test_data,
|
||||
# monkeypatch
|
||||
@@ -51,6 +52,7 @@ def test_save_file(mock_file_insert,
|
||||
data['path'] = test_data['path']
|
||||
|
||||
mock_update_file = mocker.patch('helpers.Project.update_file', return_value=None)
|
||||
mocker.patch('helpers.Project.File')
|
||||
|
||||
|
||||
# When
|
||||
|
||||
Reference in New Issue
Block a user