The fixture should be session scoped

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-06-17 13:42:19 +01:00
parent 4acea87187
commit 40d8564265
No known key found for this signature in database
GPG key ID: BB36BF6584A298FF
2 changed files with 1 additions and 8 deletions

View file

@ -44,7 +44,7 @@ def grains(sminion):
return sminion.opts["grains"].copy()
@pytest.fixture(scope="module", autouse=True)
@pytest.fixture(scope="session", autouse=True)
def _system_up_to_date(
grains,
shell,

View file

@ -3,13 +3,6 @@ import sys
import pytest
@pytest.fixture(scope="module")
def grains(salt_call_cli):
ret = salt_call_cli.run("--local", "grains.items")
assert ret.data, ret
return ret.data
@pytest.fixture(scope="module")
def pkg_name(salt_call_cli, grains):
if sys.platform.startswith("win"):