mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
The fixture should be session scoped
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
4acea87187
commit
40d8564265
2 changed files with 1 additions and 8 deletions
|
@ -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,
|
||||
|
|
|
@ -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"):
|
||||
|
|
Loading…
Add table
Reference in a new issue