Add docstring for worker_id

Fix #190
This commit is contained in:
Bruno Oliveira
2017-08-10 21:51:30 -03:00
parent 7b9546b89b
commit 3ed405f22f

View File

@@ -124,6 +124,9 @@ def pytest_cmdline_main(config):
@pytest.fixture(scope="session")
def worker_id(request):
"""Return the id of the current worker ('gw0', 'gw1', etc) or 'master'
if running on the master node.
"""
if hasattr(request.config, 'slaveinput'):
return request.config.slaveinput['slaveid']
else: