Skip to content

Commit

Permalink
Cleanup test
Browse files Browse the repository at this point in the history
  • Loading branch information
matteofigus committed Jan 30, 2024
1 parent 2a4f0b7 commit a7d63cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/unit/ecs_tasks/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,10 @@ def test_it_assumes_role(
):
mock_fs.S3FileSystem.return_value = mock_fs
mock_file = MagicMock()
mock_file.metadata.return_value = {"VersionId": b"abc123"}
mock_file.metadata.return_value = {
"VersionId": b"abc123",
"Content-Length": b"5558",
}
mock_fs.open_input_stream.return_value.__enter__.return_value = mock_file
mock_get_object_info.return_value = {"Metadata": {}}, None
mock_delete.return_value = pa.BufferOutputStream(), {"DeletedRows": 1}
Expand Down

0 comments on commit a7d63cf

Please sign in to comment.