mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
i2p: Rename test fixtures to avoid a minor warning
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
parent
717c3b39e9
commit
532a450ef7
@ -29,8 +29,8 @@ TUNNEL_CONF_PATH = DATA_DIR / 'i2ptunnel.config'
|
|||||||
TUNNEL_HTTP_NAME = 'I2P HTTP Proxy'
|
TUNNEL_HTTP_NAME = 'I2P HTTP Proxy'
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture(name='editor')
|
||||||
def editor():
|
def fixture_editor():
|
||||||
"""Setup editor for each test."""
|
"""Setup editor for each test."""
|
||||||
return TunnelEditor(str(TUNNEL_CONF_PATH))
|
return TunnelEditor(str(TUNNEL_CONF_PATH))
|
||||||
|
|
||||||
|
|||||||
@ -26,8 +26,8 @@ from plinth.modules.i2p.tests import DATA_DIR
|
|||||||
ROUTER_CONF_PATH = str(DATA_DIR / 'router.config')
|
ROUTER_CONF_PATH = str(DATA_DIR / 'router.config')
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture(name='editor')
|
||||||
def editor():
|
def fixture_editor():
|
||||||
"""Return editor instance object for each test."""
|
"""Return editor instance object for each test."""
|
||||||
return RouterEditor(ROUTER_CONF_PATH)
|
return RouterEditor(ROUTER_CONF_PATH)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user