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 0a6dde2 commit 1049986
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tosfs/tests/test_fsspec_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,11 @@ def __init__(self):


def test_customized_class(bucket, temporary_workspace):
known_implementations["tos"] = {
"class": "tosfs.tests.test_fsspec_integration.MyTosFileSystem"
}
fsspec.register_implementation(
"tos", "tosfs.tests.test_fsspec_integration.MyTosFileSystem", True
)
fsspec._registry = "tosfs.tests.test_fsspec_integration.MyTosFileSystem"
# known_implementations["tos"] = {
# "class": "tosfs.tests.test_fsspec_integration.MyTosFileSystem"
# }
fsspec.register_implementation("tos", MyTosFileSystem, True)
# fsspec._registry = "tosfs.tests.test_fsspec_integration.MyTosFileSystem"

logger.error("----------------")
logger.error("tos" in fsspec.registry)
Expand Down

0 comments on commit 1049986

Please sign in to comment.