We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f486f1 commit 625e072Copy full SHA for 625e072
conftest.py
@@ -140,13 +140,13 @@ def pytest_runtest_makereport(item, call):
140
141
# fixtures
142
143
-def setup_host(hostname_or_ip):
144
- pool = Pool(hostname_or_ip)
145
- h = pool.master
146
- return h
147
-
148
@pytest.fixture(scope='session')
149
def hosts(pytestconfig):
+ def setup_host(hostname_or_ip):
+ pool = Pool(hostname_or_ip)
+ h = pool.master
+ return h
+
150
# a list of master hosts, each from a different pool
151
hosts_args = pytestconfig.getoption("hosts")
152
hosts_split = [hostlist.split(',') for hostlist in hosts_args]
0 commit comments