Skip to content

Commit

Permalink
Add more test cases about fsspec integration
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghua committed Nov 14, 2024
1 parent d1107e0 commit 0a6dde2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tosfs/tests/test_fsspec_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,13 @@ def test_customized_class(bucket, temporary_workspace):
fsspec.register_implementation(
"tos", "tosfs.tests.test_fsspec_integration.MyTosFileSystem", True
)
fsspec.registry["tos"] = "tosfs.tests.test_fsspec_integration.MyTosFileSystem"
fsspec._registry = "tosfs.tests.test_fsspec_integration.MyTosFileSystem"

logger.error("----------------")
logger.error("tos" in fsspec.registry)
logger.error(f"fsspec.registry {fsspec.registry}")
logger.error(known_implementations)
logger.error(known_implementations["tos"])
logger.error(fsspec.get_filesystem_class("tos"))

file = f"{random_str()}.txt"
Expand Down

0 comments on commit 0a6dde2

Please sign in to comment.