mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-07 15:28:28 +01:00
ssh: test: unit, utils: test: unit: remove repo_dir
This commit is contained in:
@@ -186,7 +186,7 @@ def test_ssh_gss_auth(mock_file, mock_exists, config, expected_gss_auth):
|
||||
assert remote.gss_auth == expected_gss_auth
|
||||
|
||||
|
||||
def test_hardlink_optimization(repo_dir, ssh_server):
|
||||
def test_hardlink_optimization(tmp_dir, ssh_server):
|
||||
port = ssh_server.test_creds["port"]
|
||||
user = ssh_server.test_creds["username"]
|
||||
|
||||
|
||||
@@ -78,10 +78,10 @@ def test_fix_env_pyenv(path, orig):
|
||||
assert fix_env(env)["PATH"] == orig
|
||||
|
||||
|
||||
def test_file_md5(repo_dir):
|
||||
fname = repo_dir.FOO
|
||||
fname_object = PathInfo(fname)
|
||||
assert file_md5(fname) == file_md5(fname_object)
|
||||
def test_file_md5(tmp_dir):
|
||||
tmp_dir.gen("foo", "foo content")
|
||||
|
||||
assert file_md5("foo") == file_md5(PathInfo("foo"))
|
||||
|
||||
|
||||
def test_tmp_fname():
|
||||
|
||||
Reference in New Issue
Block a user