Skip to content

Commit 1f3a93f

Browse files
committed
tests: switch gcs fixtures to memory backend to support file/dir collisions
1 parent 6fb6062 commit 1f3a93f

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

upath/tests/conftest.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,19 @@ def docker_gcs():
238238
pytest.skip("docker not installed")
239239

240240
container = "gcsfs_test"
241-
cmd = (
242-
"docker run -d -p 4443:4443 --name gcsfs_test fsouza/fake-gcs-server:latest -scheme " # noqa: E501
243-
"http -public-host http://localhost:4443 -external-url http://localhost:4443" # noqa: E501
241+
cmd = " ".join(
242+
[
243+
"docker",
244+
"run",
245+
"-d",
246+
"-p 4443:4443",
247+
"--name gcsfs_test",
248+
"fsouza/fake-gcs-server:latest",
249+
"-scheme http",
250+
"-public-host http://localhost:4443",
251+
"-external-url http://localhost:4443",
252+
"-backend memory",
253+
]
244254
)
245255
stop_docker(container)
246256
subprocess.check_output(shlex.split(cmd))

0 commit comments

Comments
 (0)