Skip to content

Commit f4b4927

Browse files
committed
tests: and more asserts in reference test
1 parent 929fa28 commit f4b4927

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

fsspec/implementations/tests/test_reference.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from fsspec.tests.conftest import data, reset_files, server, win # noqa: F401
1414

1515

16-
def test_simple(server):
16+
def test_simple(server, instance_caches):
1717
# The dictionary in refs may be dumped with a different separator
1818
# depending on whether json or ujson is imported
1919
from fsspec.implementations.reference import json as json_impl
@@ -25,9 +25,17 @@ def test_simple(server):
2525
"d": b"base64:aGVsbG8=",
2626
"e": {"key": "value"},
2727
}
28+
29+
assert instance_caches.gather_counts() == {}
30+
2831
h = fsspec.filesystem("http")
2932
fs = fsspec.filesystem("reference", fo=refs, fs=h)
3033

34+
assert instance_caches.gather_counts() == {
35+
"http": 1,
36+
"reference": 1,
37+
}
38+
3139
assert {
3240
"protocol": h.protocol,
3341
"module": h.__class__.__module__,

0 commit comments

Comments
 (0)