Skip to content

Commit

Permalink
Use pytest.mark.skip_on_env to have a cleaner code
Browse files Browse the repository at this point in the history
  • Loading branch information
meaksh committed Mar 14, 2024
1 parent 9d1a801 commit 7c33fec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions tests/pytests/integration/daemons/test_memory_leak.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
pytest.mark.timeout_unless_on_windows(360),
]

GITHUB_ACTIONS = bool(os.getenv("GITHUB_ACTIONS"))


@pytest.fixture
def file_add_delete_sls(tmp_path, salt_master):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@

log = logging.getLogger(__name__)

GITHUB_ACTIONS = bool(os.getenv("GITHUB_ACTIONS"))


@pytest.mark.skipif(GITHUB_ACTIONS, reason="Test is failing in GitHub Actions")
@pytest.mark.skip_on_env("GITHUB_ACTIONS", present=True)
def test_pki(salt_mm_failover_master_1, salt_mm_failover_master_2, caplog):
"""
Verify https://docs.saltproject.io/en/latest/topics/tutorials/multimaster_pki.html
Expand Down

0 comments on commit 7c33fec

Please sign in to comment.