Skip to content

Commit dc0cde3

Browse files
committed
patch and retire bits in S3 test
1 parent 7d9274b commit dc0cde3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/unit/test_storage_types.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ def reduce_chunk(
8989

9090
assert result == 999.0
9191

92-
mock_load.assert_called_once_with(uri)
92+
# S3 loading is not done from Active anymore
93+
# mock_load.assert_called_once_with(uri)
94+
9395
mock_nz.assert_called_once_with(uri, "data", "s3")
9496
# NOTE: This gets called multiple times with various arguments. Match on
9597
# the common ones.
@@ -134,6 +136,7 @@ def load_from_s3(uri):
134136
assert np.max(result) == 999.0
135137

136138

139+
@pytest.mark.skip(reason="No more valid file load in Active")
137140
@mock.patch.object(activestorage.active, "load_from_s3")
138141
def test_s3_load_failure(mock_load):
139142
"""Test when an S3 object doesn't exist."""

0 commit comments

Comments
 (0)