From 3b28ea5b613113b498d3f6a113bd09428ba13415 Mon Sep 17 00:00:00 2001 From: Mohammad Amin Date: Mon, 16 Oct 2023 16:16:44 +0330 Subject: [PATCH] fix: updated tests for the 4 new activities! --- .../tests/integration/test_active_members.py | 8 ++++++++ .../tests/integration/test_all_active_fourteen_period.py | 4 ++++ .../tests/integration/test_consistently_active.py | 4 ++++ .../tests/integration/test_disengaged_members.py | 4 ++++ .../test_disengaged_were_consistently_active.py | 4 ++++ .../integration/test_disengaged_were_newly_active.py | 4 ++++ .../tests/integration/test_disengaged_were_vital.py | 4 ++++ .../test_mention_active_members_from_int_matrix.py | 4 ++++ .../integration/test_newly_active_continuous_period.py | 4 ++++ .../integration/test_newly_active_discontinued_period.py | 5 +++++ .../tests/integration/test_non_consistently_active.py | 5 +++++ .../integration/test_partially_consistently_active.py | 5 +++++ .../tests/integration/test_still_active.py | 5 +++++ tc_core_analyzer_lib/tests/integration/test_vital.py | 5 +++++ 14 files changed, 65 insertions(+) diff --git a/tc_core_analyzer_lib/tests/integration/test_active_members.py b/tc_core_analyzer_lib/tests/integration/test_active_members.py index 4828372..88b5ac2 100644 --- a/tc_core_analyzer_lib/tests/integration/test_active_members.py +++ b/tc_core_analyzer_lib/tests/integration/test_active_members.py @@ -39,6 +39,10 @@ def test_no_active(): "all_about_to_disengage": {}, "all_disengaged_in_past": {}, "all_inconsistent": {}, + "all_new_consistent": {}, + "all_new_vital": {}, + "all_became_inconsistent": {}, + "all_became_unvital": {}, } WINDOW_D = 7 @@ -162,6 +166,10 @@ def test_single_active(): "all_about_to_disengage": {}, "all_disengaged_in_past": {}, "all_inconsistent": {}, + "all_new_consistent": {}, + "all_new_vital": {}, + "all_became_inconsistent": {}, + "all_became_unvital": {}, } # time window WINDOW_D = 7 diff --git a/tc_core_analyzer_lib/tests/integration/test_all_active_fourteen_period.py b/tc_core_analyzer_lib/tests/integration/test_all_active_fourteen_period.py index 9abb08a..4a0f727 100644 --- a/tc_core_analyzer_lib/tests/integration/test_all_active_fourteen_period.py +++ b/tc_core_analyzer_lib/tests/integration/test_all_active_fourteen_period.py @@ -73,6 +73,10 @@ def test_all_active_fourteen_period(): "all_about_to_disengage": {}, "all_disengaged_in_past": {}, "all_inconsistent": {}, + "all_new_consistent": {}, + "all_new_vital": {}, + "all_became_inconsistent": {}, + "all_became_unvital": {}, } WINDOW_D = 7 diff --git a/tc_core_analyzer_lib/tests/integration/test_consistently_active.py b/tc_core_analyzer_lib/tests/integration/test_consistently_active.py index 046a8c4..0376d51 100644 --- a/tc_core_analyzer_lib/tests/integration/test_consistently_active.py +++ b/tc_core_analyzer_lib/tests/integration/test_consistently_active.py @@ -44,6 +44,10 @@ def test_two_consistently_active(): "all_about_to_disengage": {}, "all_disengaged_in_past": {}, "all_inconsistent": {}, + "all_new_consistent": {}, + "all_new_vital": {}, + "all_became_inconsistent": {}, + "all_became_unvital": {}, } memberactivities = activity_dict.keys() diff --git a/tc_core_analyzer_lib/tests/integration/test_disengaged_members.py b/tc_core_analyzer_lib/tests/integration/test_disengaged_members.py index c852989..4019e91 100644 --- a/tc_core_analyzer_lib/tests/integration/test_disengaged_members.py +++ b/tc_core_analyzer_lib/tests/integration/test_disengaged_members.py @@ -41,6 +41,10 @@ def test_disengaged_members(): "all_about_to_disengage": {}, "all_disengaged_in_past": {}, "all_inconsistent": {}, + "all_new_consistent": {}, + "all_new_vital": {}, + "all_became_inconsistent": {}, + "all_became_unvital": {}, } memberactivities = activity_dict.keys() diff --git a/tc_core_analyzer_lib/tests/integration/test_disengaged_were_consistently_active.py b/tc_core_analyzer_lib/tests/integration/test_disengaged_were_consistently_active.py index 597e504..15be31b 100644 --- a/tc_core_analyzer_lib/tests/integration/test_disengaged_were_consistently_active.py +++ b/tc_core_analyzer_lib/tests/integration/test_disengaged_were_consistently_active.py @@ -41,6 +41,10 @@ def test_disengaged_were_consistent(): "all_about_to_disengage": {}, "all_disengaged_in_past": {}, "all_inconsistent": {}, + "all_new_consistent": {}, + "all_new_vital": {}, + "all_became_inconsistent": {}, + "all_became_unvital": {}, } memberactivities = activity_dict.keys() diff --git a/tc_core_analyzer_lib/tests/integration/test_disengaged_were_newly_active.py b/tc_core_analyzer_lib/tests/integration/test_disengaged_were_newly_active.py index 6c2c9c9..ee5fad1 100644 --- a/tc_core_analyzer_lib/tests/integration/test_disengaged_were_newly_active.py +++ b/tc_core_analyzer_lib/tests/integration/test_disengaged_were_newly_active.py @@ -74,6 +74,10 @@ def test_disengaged_newly_active(): "all_about_to_disengage": {}, "all_disengaged_in_past": {}, "all_inconsistent": {}, + "all_new_consistent": {}, + "all_new_vital": {}, + "all_became_inconsistent": {}, + "all_became_unvital": {}, } memberactivities = activity_dict.keys() diff --git a/tc_core_analyzer_lib/tests/integration/test_disengaged_were_vital.py b/tc_core_analyzer_lib/tests/integration/test_disengaged_were_vital.py index 2c3de1a..477b4dc 100644 --- a/tc_core_analyzer_lib/tests/integration/test_disengaged_were_vital.py +++ b/tc_core_analyzer_lib/tests/integration/test_disengaged_were_vital.py @@ -74,6 +74,10 @@ def test_disengaged_were_vital(): "all_about_to_disengage": {}, "all_disengaged_in_past": {}, "all_inconsistent": {}, + "all_new_consistent": {}, + "all_new_vital": {}, + "all_became_inconsistent": {}, + "all_became_unvital": {}, } memberactivities = activity_dict.keys() diff --git a/tc_core_analyzer_lib/tests/integration/test_mention_active_members_from_int_matrix.py b/tc_core_analyzer_lib/tests/integration/test_mention_active_members_from_int_matrix.py index 5467e98..889c3e8 100644 --- a/tc_core_analyzer_lib/tests/integration/test_mention_active_members_from_int_matrix.py +++ b/tc_core_analyzer_lib/tests/integration/test_mention_active_members_from_int_matrix.py @@ -79,6 +79,10 @@ def test_mention_active_members_from_int_matrix(): "all_about_to_disengage": {}, "all_disengaged_in_past": {}, "all_inconsistent": {}, + "all_new_consistent": {}, + "all_new_vital": {}, + "all_became_inconsistent": {}, + "all_became_unvital": {}, } memberactivities = activity_dict.keys() diff --git a/tc_core_analyzer_lib/tests/integration/test_newly_active_continuous_period.py b/tc_core_analyzer_lib/tests/integration/test_newly_active_continuous_period.py index a02aa56..c2c9c26 100644 --- a/tc_core_analyzer_lib/tests/integration/test_newly_active_continuous_period.py +++ b/tc_core_analyzer_lib/tests/integration/test_newly_active_continuous_period.py @@ -44,6 +44,10 @@ def test_newly_active_continuous_period(): "all_about_to_disengage": {}, "all_disengaged_in_past": {}, "all_inconsistent": {}, + "all_new_consistent": {}, + "all_new_vital": {}, + "all_became_inconsistent": {}, + "all_became_unvital": {}, } memberactivities = activity_dict.keys() diff --git a/tc_core_analyzer_lib/tests/integration/test_newly_active_discontinued_period.py b/tc_core_analyzer_lib/tests/integration/test_newly_active_discontinued_period.py index c8cfd93..13f1951 100644 --- a/tc_core_analyzer_lib/tests/integration/test_newly_active_discontinued_period.py +++ b/tc_core_analyzer_lib/tests/integration/test_newly_active_discontinued_period.py @@ -74,6 +74,11 @@ def test_newly_active_discontinued_period(): "all_about_to_disengage": {}, "all_disengaged_in_past": {}, "all_inconsistent": {}, + "all_inconsistent": {}, + "all_new_consistent": {}, + "all_new_vital": {}, + "all_became_inconsistent": {}, + "all_became_unvital": {}, } memberactivities = activity_dict.keys() diff --git a/tc_core_analyzer_lib/tests/integration/test_non_consistently_active.py b/tc_core_analyzer_lib/tests/integration/test_non_consistently_active.py index 896e5be..b3c4a12 100644 --- a/tc_core_analyzer_lib/tests/integration/test_non_consistently_active.py +++ b/tc_core_analyzer_lib/tests/integration/test_non_consistently_active.py @@ -46,6 +46,11 @@ def test_two_consistently_active_non(): "all_about_to_disengage": {}, "all_disengaged_in_past": {}, "all_inconsistent": {}, + "all_inconsistent": {}, + "all_new_consistent": {}, + "all_new_vital": {}, + "all_became_inconsistent": {}, + "all_became_unvital": {}, } memberactivities = activity_dict.keys() diff --git a/tc_core_analyzer_lib/tests/integration/test_partially_consistently_active.py b/tc_core_analyzer_lib/tests/integration/test_partially_consistently_active.py index 28a0c00..a8879f0 100644 --- a/tc_core_analyzer_lib/tests/integration/test_partially_consistently_active.py +++ b/tc_core_analyzer_lib/tests/integration/test_partially_consistently_active.py @@ -44,6 +44,11 @@ def test_two_consistently_active_partially(): "all_about_to_disengage": {}, "all_disengaged_in_past": {}, "all_inconsistent": {}, + "all_inconsistent": {}, + "all_new_consistent": {}, + "all_new_vital": {}, + "all_became_inconsistent": {}, + "all_became_unvital": {}, } memberactivities = activity_dict.keys() diff --git a/tc_core_analyzer_lib/tests/integration/test_still_active.py b/tc_core_analyzer_lib/tests/integration/test_still_active.py index 39386fe..2caecd7 100644 --- a/tc_core_analyzer_lib/tests/integration/test_still_active.py +++ b/tc_core_analyzer_lib/tests/integration/test_still_active.py @@ -75,6 +75,11 @@ def test_still_active_members(): "all_about_to_disengage": {}, "all_disengaged_in_past": {}, "all_inconsistent": {}, + "all_inconsistent": {}, + "all_new_consistent": {}, + "all_new_vital": {}, + "all_became_inconsistent": {}, + "all_became_unvital": {}, } memberactivities = activity_dict.keys() diff --git a/tc_core_analyzer_lib/tests/integration/test_vital.py b/tc_core_analyzer_lib/tests/integration/test_vital.py index f86bf77..6036781 100644 --- a/tc_core_analyzer_lib/tests/integration/test_vital.py +++ b/tc_core_analyzer_lib/tests/integration/test_vital.py @@ -75,6 +75,11 @@ def test_one_vital(): "all_about_to_disengage": {}, "all_disengaged_in_past": {}, "all_inconsistent": {}, + "all_inconsistent": {}, + "all_new_consistent": {}, + "all_new_vital": {}, + "all_became_inconsistent": {}, + "all_became_unvital": {}, } memberactivites = activity_dict.keys()