mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2025-12-26 16:57:23 +01:00
fix for Python 3.9 & 3.10: @patch('helpers.files.update_file')
This commit is contained in:
@@ -35,7 +35,7 @@ project.app = 'test'
|
||||
'None name', 'empty name',
|
||||
# 'None path absolute file', 'home path', 'home path same name', 'absolute path with name'
|
||||
])
|
||||
@patch('helpers.Project.update_file')
|
||||
@patch('helpers.files.update_file')
|
||||
@patch('database.models.files.File.insert')
|
||||
def test_save_file(mock_file_insert, mock_update_file, test_data):
|
||||
# Given
|
||||
|
||||
Reference in New Issue
Block a user