tests: make ssh_server session scoped (#3898)

Fixes #3888
This commit is contained in:
Ruslan Kuprieiev
2020-05-28 16:09:58 +03:00
committed by GitHub
parent 7d0a06248d
commit 02a52d038a
+1 -1
View File
@@ -34,7 +34,7 @@ user = "user"
key_path = os.path.join(here, f"{user}.key")
@pytest.fixture
@pytest.fixture(scope="session")
def ssh_server():
users = {user: key_path}
with mockssh.Server(users) as s: