Skip to content

Commit

Permalink
chore: Add pytest marker for tests that uses mender-gateway
Browse files Browse the repository at this point in the history
Signed-off-by: Alf-Rune Siqveland <[email protected]>
  • Loading branch information
alfrunes committed Nov 13, 2024
1 parent a99ed3e commit 9b2d977
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ testpaths = tests
#
# Use v1 of xunit format (default will change in pytest 6.0)
junit_family=xunit1

markers =
mender_gateway: marks tests that uses mender-gateway
1 change: 1 addition & 0 deletions tests/tests/test_mtls.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def make_script_artifact(artifact_name, device_type, output_path):
return get_script_artifact(script, artifact_name, device_type, output_path)


@pytest.mark.mender_gateway
@pytest.mark.skipif(
isK8S(), reason="not relevant in a staging or production environment"
)
Expand Down

0 comments on commit 9b2d977

Please sign in to comment.