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 db185f3 commit 9faa452Copy full SHA for 9faa452
upath/tests/conftest.py
@@ -426,7 +426,7 @@ def smb_container():
426
container = "fsspec_smb"
427
stop_docker(container)
428
cfg = "-p -u 'testuser;testpass' -s 'home;/share;no;no;no;testuser'"
429
- port = 445
+ port = int(os.environ.get("UPATH_TESTS_SMB_PORT", "445"))
430
img = f"docker run --name {container} --detach -p 139:139 -p {port}:445 dperson/samba" # noqa: E231 E501
431
cmd = f"{img} {cfg}"
432
try:
@@ -448,7 +448,7 @@ def smb_container():
448
449
@pytest.fixture
450
def smb_url(smb_container):
451
- smb_url = "smb://{username}:{password}@{host}/home/"
+ smb_url = "smb://{username}:{password}@{host}:{port}/home/"
452
smb_url = smb_url.format(**smb_container)
453
return smb_url
454
0 commit comments