Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests for new version of fsspec #20

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/test_bucket_notification_watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def test_publish_paths(patched_bucket_listener, caplog): # noqa
assert message.data["uri"] == "s3://viirs-data/sdr/SVM13_npp_d20240408_t1006227_e1007469_b64498_c20240408102334392250_cspp_dev.h5"
assert message.data["uid"] == "SVM13_npp_d20240408_t1006227_e1007469_b64498_c20240408102334392250_cspp_dev.h5"
assert message.data["sensor"] == "viirs"
assert message.data["filesystem"] == {"cls": "s3fs.core.S3FileSystem", "protocol": "s3", "args": [],
assert message.data["filesystem"] == {"cls": "s3fs.core:S3FileSystem", "protocol": "s3", "args": [],
"profile": "someprofile"}
assert "Starting watch on 'viirs-data'" in caplog.text

Expand Down
2 changes: 1 addition & 1 deletion tests/test_copernicus_dataspace_watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def test_publish_paths(caplog):
assert message.data["uri"] == "s3:///eodata/Sentinel-3/OLCI/OL_1_EFR___/2024/04/15/S3B_OL_1_EFR____20240415T074029_20240415T074329_20240415T094236_0179_092_035_1620_PS2_O_NR_003.SEN3"
assert message.data["uid"] == "S3B_OL_1_EFR____20240415T074029_20240415T074329_20240415T094236_0179_092_035_1620_PS2_O_NR_003.SEN3" # noqa
assert message.data["sensor"] == "olci"
assert message.data["filesystem"] == {"cls": "s3fs.core.S3FileSystem", "protocol": "s3", "args": [],
assert message.data["filesystem"] == {"cls": "s3fs.core:S3FileSystem", "protocol": "s3", "args": [],
"profile": "someprofile"}
assert message.data["path"] == "/eodata/Sentinel-3/OLCI/OL_1_EFR___/2024/04/15/S3B_OL_1_EFR____20240415T074029_20240415T074329_20240415T094236_0179_092_035_1620_PS2_O_NR_003.SEN3" # noqa
assert f"Starting watch on dataspace for '{filter_string}'" in caplog.text
2 changes: 1 addition & 1 deletion tests/test_datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def test_publish_paths(caplog, search_params):
assert message.data["uri"] == uri
assert message.data["sensor"] == "olci"
assert message.data["filesystem"] == {
"cls": "fsspec.implementations.http.HTTPFileSystem",
"cls": "fsspec.implementations.http:HTTPFileSystem",
"protocol": "https",
"args": [],
"encoded": True,
Expand Down
Loading