code: def test_remote_with_jobs(dvc, base_url, fs_cls):
      scheme = "http" + ("s" if fs_cls is WebDAVSFileSystem else "")
      remote_config = {"url": base_url}
  
      dvc.config["remote"]["dav"] = remote_config
      cls, config, _ = get_cloud_fs(dvc.config, name="dav")
      assert config["user"] == user
      assert f"{scheme}://{user}@example.com" in config["host"]
      assert cls is fs_cls
  
      # config from remote takes priority
      remote_config.update({"user": "admin"})
      cls, config, _ = get_cloud_fs(dvc.config, name="dav")
      assert config["user"] == "admin"
      assert f"{scheme}://{user}@example.com" in config["host"]
      assert cls is fs_cls
  
file_path: dvc/tests/unit/remote/test_webdav.py
imports: import pytest
  from dvc_webdav import WebDAVFileSystem, WebDAVSFileSystem
  from dvc.fs import get_cloud_fs
  from tests.utils.asserts import issubset
label_desc: Use image node_id 9 for calling a global function with example usage: test_remote_with_jobs(dvc, base_url, fs_cls) without return types