Skip to content

Commit 7c420d7

Browse files
added integration marker
1 parent 57f0bdd commit 7c420d7

File tree

6 files changed

+9
-14
lines changed

6 files changed

+9
-14
lines changed

integration/test_alert_rules.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
ALERT_RULES_COMMAND = "code42 alert-rules"
55

66

7+
@pytest.mark.integration
78
@pytest.mark.parametrize(
89
"command",
910
[

integration/test_alerts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
)
2222

2323

24+
@pytest.mark.integration
2425
@pytest.mark.parametrize(
2526
"command",
2627
[

integration/test_auditlogs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
end_date_str = end_date.strftime("%Y-%m-%d %H:%M:%S")
1313

1414

15+
@pytest.mark.integration
1516
@pytest.mark.parametrize(
1617
"command",
1718
[

integration/test_legal_hold.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
LEGAL_HOLD_COMMAND = "code42 legal-hold"
55

66

7+
@pytest.mark.integration
78
@pytest.mark.parametrize(
89
"command",
910
[

run_integration.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

tox.ini

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ commands =
1717
# -l: show locals in tracebacks
1818
# --tb=short: short traceback print mode
1919
# --strict: marks not registered in configuration file raise errors
20-
pytest --cov=code42cli --cov-report xml -v -rsxX -l --tb=short --strict
20+
pytest --cov=code42cli --cov-report xml -v -rsxX -l --tb=short --strict -m "not integration"
2121

2222
[testenv:docs]
2323
deps =
@@ -44,3 +44,7 @@ deps =
4444
pytest-cov == 2.10.0
4545
git+https://github.com/code42/py42.git@master#egg=py42
4646
git+ssh://[email protected]/code42/c42eventextractor.git@master#egg=c42eventextractor
47+
48+
[pytest]
49+
markers =
50+
integration: mark test as a integration test.

0 commit comments

Comments
 (0)