debugging

This commit is contained in:
Nicholas Albion
2023-10-04 18:01:15 +11:00
parent 8bb0c9db4b
commit d7130c3dbd
2 changed files with 5 additions and 2 deletions

View File

@@ -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'])

View File

@@ -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}