mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
21 lines
471 B
Python
21 lines
471 B
Python
from dvc.fs.webdav import WebDAVFileSystem
|
|
|
|
# Test configuration
|
|
url = "webdavs://example.com/public.php/webdav"
|
|
user = "username"
|
|
userurl = f"webdavs://{user}@example.com/public.php/webdav"
|
|
password = "password"
|
|
|
|
|
|
def test_user(dvc):
|
|
fs = WebDAVFileSystem(host=url, user=user)
|
|
|
|
assert fs.user == user
|
|
|
|
|
|
def test_password(dvc):
|
|
config = {"host": url, "user": user, "password": password}
|
|
fs = WebDAVFileSystem(**config)
|
|
|
|
assert fs.password == password
|