Skip to content

Commit

Permalink
fix: updated tests for the 4 new activities!
Browse files Browse the repository at this point in the history
  • Loading branch information
amindadgar committed Oct 16, 2023
1 parent a23a698 commit 3b28ea5
Show file tree
Hide file tree
Showing 14 changed files with 65 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tc_core_analyzer_lib/tests/integration/test_active_members.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
5 changes: 5 additions & 0 deletions tc_core_analyzer_lib/tests/integration/test_still_active.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
5 changes: 5 additions & 0 deletions tc_core_analyzer_lib/tests/integration/test_vital.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 3b28ea5

Please sign in to comment.