mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 07:18:27 +01:00
Merge pull request #1945 from ag613915cao/replace_yield_fixture
Replace yield_fixture()
This commit is contained in:
+2
-2
@@ -69,14 +69,14 @@ user = "user"
|
||||
key_path = os.path.join(here, "{0}.key".format(user))
|
||||
|
||||
|
||||
@pytest.yield_fixture()
|
||||
@pytest.fixture
|
||||
def ssh_server():
|
||||
users = {user: key_path}
|
||||
with mockssh.Server(users) as s:
|
||||
yield s
|
||||
|
||||
|
||||
@pytest.yield_fixture()
|
||||
@pytest.fixture
|
||||
def ssh(ssh_server):
|
||||
yield SSHConnection(
|
||||
ssh_server.host,
|
||||
|
||||
Reference in New Issue
Block a user