From 4578354019f17fcea05353d7b6d0dcf82a40c9b0 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Mon, 23 Oct 2017 14:21:38 -0700 Subject: Scope SFTP client/server fixture to be session-level for now Saves at least a few seconds per module this way and not super worried about state bleed so far --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index dbf2cb0f..c58798ca 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -31,7 +31,7 @@ def make_sftp_folder(client): # TODO: apply at module or session level # TODO: roll in SFTP folder setup and teardown? # NOTE: This is defined here for use by both SFTP (normal & 'big') suites. -@pytest.fixture +@pytest.fixture(scope='session') def sftp(): """ Set up an in-memory SFTP server, returning its corresponding SFTPClient. -- cgit v1.2.3