We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 162dd2f commit e2451e9Copy full SHA for e2451e9
upath/tests/implementations/test_gcs.py
@@ -1,3 +1,4 @@
1
+import fsspec
2
import pytest
3
4
from upath import UPath
@@ -34,3 +35,17 @@ def test_rmdir(self):
34
35
@pytest.mark.skip
36
def test_makedirs_exist_ok_false(self):
37
pass
38
+
39
40
+@skip_on_windows
41
+def test_mkdir_in_empty_bucket(docker_gcs):
42
+ fs = fsspec.filesystem("gcs", endpoint_url=docker_gcs)
43
+ fs.mkdir("my-fresh-bucket")
44
+ assert "my-fresh-bucket/" in fs.buckets
45
+ fs.invalidate_cache()
46
+ del fs
47
48
+ UPath(
49
+ "gs://my-fresh-bucket/some-dir/another-dir/file",
50
+ endpoint_url=docker_gcs,
51
+ ).parent.mkdir(parents=True, exist_ok=True)
0 commit comments