From 532a450ef7b08538c5e735dd9fea15d541b67397 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 2 May 2019 13:19:07 -0700 Subject: [PATCH] i2p: Rename test fixtures to avoid a minor warning Signed-off-by: Sunil Mohan Adapa Reviewed-by: Joseph Nuthalapati --- plinth/modules/i2p/tests/test_helpers.py | 4 ++-- plinth/modules/i2p/tests/test_router_editor.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plinth/modules/i2p/tests/test_helpers.py b/plinth/modules/i2p/tests/test_helpers.py index fdc21bc39..4a5084a1c 100644 --- a/plinth/modules/i2p/tests/test_helpers.py +++ b/plinth/modules/i2p/tests/test_helpers.py @@ -29,8 +29,8 @@ TUNNEL_CONF_PATH = DATA_DIR / 'i2ptunnel.config' TUNNEL_HTTP_NAME = 'I2P HTTP Proxy' -@pytest.fixture -def editor(): +@pytest.fixture(name='editor') +def fixture_editor(): """Setup editor for each test.""" return TunnelEditor(str(TUNNEL_CONF_PATH)) diff --git a/plinth/modules/i2p/tests/test_router_editor.py b/plinth/modules/i2p/tests/test_router_editor.py index cbf188d3a..9df4ea224 100644 --- a/plinth/modules/i2p/tests/test_router_editor.py +++ b/plinth/modules/i2p/tests/test_router_editor.py @@ -26,8 +26,8 @@ from plinth.modules.i2p.tests import DATA_DIR ROUTER_CONF_PATH = str(DATA_DIR / 'router.config') -@pytest.fixture -def editor(): +@pytest.fixture(name='editor') +def fixture_editor(): """Return editor instance object for each test.""" return RouterEditor(ROUTER_CONF_PATH)