From 71fc4b37a857c40ad7ff5f3998e473e124f8354e Mon Sep 17 00:00:00 2001 From: Juliya Smith Date: Mon, 8 Feb 2021 18:22:15 +0000 Subject: [PATCH 1/2] add missing tests --- tests/integration/test_alerts.py | 1 + tests/integration/test_auditlogs.py | 1 + tests/integration/test_departing_employee.py | 11 +++++++++++ tests/integration/test_high_risk_employee.py | 11 +++++++++++ tests/integration/test_legal_hold.py | 1 + 5 files changed, 25 insertions(+) create mode 100644 tests/integration/test_departing_employee.py create mode 100644 tests/integration/test_high_risk_employee.py diff --git a/tests/integration/test_alerts.py b/tests/integration/test_alerts.py index d790126b1..27a723fd8 100644 --- a/tests/integration/test_alerts.py +++ b/tests/integration/test_alerts.py @@ -38,6 +38,7 @@ def test_alerts_send_to_returns_success_return_code( assert result.exit_code == 0 +@pytest.mark.integration def test_alerts_advanced_query_returns_success_return_code( runner, integration_test_profile ): diff --git a/tests/integration/test_auditlogs.py b/tests/integration/test_auditlogs.py index 3ad3e4be4..7fd000d5e 100644 --- a/tests/integration/test_auditlogs.py +++ b/tests/integration/test_auditlogs.py @@ -39,6 +39,7 @@ def test_auditlogs_search_command_with_short_hand_begin_returns_success_return_c assert_test_is_successful(runner, append_profile(command)) +@pytest.mark.integration def test_auditlogs_search_command_with_full_begin_returns_success_return_code( runner, integration_test_profile, ): diff --git a/tests/integration/test_departing_employee.py b/tests/integration/test_departing_employee.py new file mode 100644 index 000000000..5fd88c49d --- /dev/null +++ b/tests/integration/test_departing_employee.py @@ -0,0 +1,11 @@ +import pytest +from tests.integration.conftest import append_profile +from tests.integration.util import assert_test_is_successful + + +@pytest.mark.integration +def test_cases_list_command_returns_success_return_code( + runner, integration_test_profile +): + command = "departing-employee list" + assert_test_is_successful(runner, append_profile(command)) diff --git a/tests/integration/test_high_risk_employee.py b/tests/integration/test_high_risk_employee.py new file mode 100644 index 000000000..513225725 --- /dev/null +++ b/tests/integration/test_high_risk_employee.py @@ -0,0 +1,11 @@ +import pytest +from tests.integration.conftest import append_profile +from tests.integration.util import assert_test_is_successful + + +@pytest.mark.integration +def test_cases_list_command_returns_success_return_code( + runner, integration_test_profile +): + command = "high-risk-employee list" + assert_test_is_successful(runner, append_profile(command)) diff --git a/tests/integration/test_legal_hold.py b/tests/integration/test_legal_hold.py index 0b4603f60..faa499efb 100644 --- a/tests/integration/test_legal_hold.py +++ b/tests/integration/test_legal_hold.py @@ -11,6 +11,7 @@ def test_legal_hold_list_command_returns_success_return_code( assert_test_is_successful(runner, append_profile(command)) +@pytest.mark.integration def test_legal_hold_show_command_returns_success_return_code( runner, integration_test_profile ): From 6ecc6b8e5e07a2b8191022ccea93598ab726553f Mon Sep 17 00:00:00 2001 From: Juliya Smith Date: Mon, 8 Feb 2021 18:23:48 +0000 Subject: [PATCH 2/2] names --- tests/integration/test_departing_employee.py | 2 +- tests/integration/test_high_risk_employee.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_departing_employee.py b/tests/integration/test_departing_employee.py index 5fd88c49d..f3dca5be5 100644 --- a/tests/integration/test_departing_employee.py +++ b/tests/integration/test_departing_employee.py @@ -4,7 +4,7 @@ @pytest.mark.integration -def test_cases_list_command_returns_success_return_code( +def test_departing_employee_list_command_returns_success_return_code( runner, integration_test_profile ): command = "departing-employee list" diff --git a/tests/integration/test_high_risk_employee.py b/tests/integration/test_high_risk_employee.py index 513225725..26aeb550a 100644 --- a/tests/integration/test_high_risk_employee.py +++ b/tests/integration/test_high_risk_employee.py @@ -4,7 +4,7 @@ @pytest.mark.integration -def test_cases_list_command_returns_success_return_code( +def test_high_risk_employee_list_command_returns_success_return_code( runner, integration_test_profile ): command = "high-risk-employee list"