Skip to content

Commit

Permalink
Low Activity Threshold Update (#420)
Browse files Browse the repository at this point in the history
* low activity update to test

* Increasing low activity treshold to 10
  • Loading branch information
erenbektas committed Jun 12, 2022
1 parent 9bf5c17 commit 3857237
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion authentication/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# Time period to check low activity
LOW_ACTIVITY_TIMEDELTA = timedelta(days=30)
# Transcription count where a volunteer activity is marked as low
LOW_ACTIVITY_THRESHOLD = 5
LOW_ACTIVITY_THRESHOLD = 10


class BlossomUserManager(UserManager):
Expand Down
2 changes: 1 addition & 1 deletion authentication/tests/test_blossomuser.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def test_gamma_at_time(

@pytest.mark.parametrize(
"recent_gamma, total_gamma, expected",
[(0, 10000, True), (5, 10000, True), (6, 6, False), (10, 10000, False)],
[(0, 10000, True), (10, 10000, True), (11, 11, False), (15, 10000, False)],
)
def test_has_low_activity(
client: Client, recent_gamma: int, total_gamma: int, expected: bool,
Expand Down

0 comments on commit 3857237

Please sign in to comment.