Pass shell where it was missed

Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
This commit is contained in:
Vladimir Domnich 2022-10-14 20:56:15 +04:00 committed by Vladimir
parent 4b3a5f60c4
commit 8e8a5b6efd
3 changed files with 44 additions and 19 deletions

View file

@ -48,7 +48,10 @@ def hosting(configure_testlib) -> Hosting:
@pytest.fixture(scope="session")
def require_multiple_hosts(hosting: Hosting):
"""Fixture that is applied to tests that require that environment has multiple hosts."""
"""Designates tests that require environment with multiple hosts.
These tests will be skipped on an environment that has only 1 host.
"""
if len(hosting.hosts) <= 1:
pytest.skip("Test only works with multiple hosts")
yield