mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2025-12-26 16:57:23 +01:00
debugging
This commit is contained in:
@@ -230,6 +230,7 @@ class Project:
|
||||
logger.info(f'-------------update_file: {update_file}')
|
||||
print('--------------------------------------')
|
||||
print(update_file)
|
||||
return str(update_file)
|
||||
|
||||
|
||||
# update_file(data['full_path'], data['content'])
|
||||
|
||||
@@ -60,13 +60,15 @@ def test_save_file(
|
||||
project = create_project()
|
||||
|
||||
# When
|
||||
project.save_file(data)
|
||||
result = project.save_file(data)
|
||||
|
||||
assert result == ''
|
||||
|
||||
# Then assert that update_file with the correct path
|
||||
expected_saved_to = test_data['saved_to']
|
||||
# mock_update_file.assert_called_once_with(expected_saved_to, 'Hello World!')
|
||||
|
||||
|
||||
|
||||
# Also assert that File.insert was called with the expected arguments
|
||||
# expected_file_data = {'app': project.app, 'path': test_data['path'], 'name': test_data['name'],
|
||||
# 'full_path': expected_saved_to}
|
||||
|
||||
Reference in New Issue
Block a user