Merge pull request #1945 from ag613915cao/replace_yield_fixture

Replace yield_fixture()
This commit is contained in:
Ruslan Kuprieiev
2019-04-29 14:48:10 +03:00
committed by GitHub
+2 -2
View File
@@ -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,