Skip to content

Commit

Permalink
Update fileMetadata.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KartikSaxena19 committed Oct 9, 2024
1 parent 14299f3 commit b828c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twinTrim/dataStructures/fileMetadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def test_add_or_update_file_exists():
assert isinstance(result, FileMetadata)

def test_add_or_update_file_does_not_exist():
file_path = '/path/to/file'
with patch('os.path.exists', return_value=False):
file_path = '/path/to/file'
with patch('builtins.open', mock_open()):
result = add_or_update_normal_file(file_path)
assert result is None

0 comments on commit b828c84

Please sign in to comment.