mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix pytest marking so only the slow tests instead of all tests in functional file are marked as slow
This commit is contained in:
parent
6b2ac305bf
commit
5b97fa6a58
1 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,6 @@ from salt.exceptions import SaltInvocationError
|
|||
|
||||
pytestmark = [
|
||||
pytest.mark.skip_if_binaries_missing("rpm", "yum"),
|
||||
pytest.mark.slow_test,
|
||||
]
|
||||
|
||||
|
||||
|
@ -67,6 +66,7 @@ def repo_basedir(tmp_path):
|
|||
shutil.rmtree(str(basedir))
|
||||
|
||||
|
||||
@pytest.mark.slow_test
|
||||
def test_yum_list_pkgs(grains):
|
||||
"""
|
||||
compare the output of rpm -qa vs the return of yumpkg.list_pkgs,
|
||||
|
@ -86,6 +86,7 @@ def test_yum_list_pkgs(grains):
|
|||
|
||||
@pytest.mark.destructive_test
|
||||
@pytest.mark.skip_if_not_root
|
||||
@pytest.mark.slow_test
|
||||
def test_yumpkg_remove_wildcard():
|
||||
salt.modules.yumpkg.install(pkgs=["httpd-devel", "httpd-tools"])
|
||||
ret = salt.modules.yumpkg.remove(name="httpd-*")
|
||||
|
|
Loading…
Add table
Reference in a new issue