Skip to content

Commit

Permalink
Update unit tests for get_quality_text_numerator()
Browse files Browse the repository at this point in the history
  • Loading branch information
iantei committed Nov 27, 2024
1 parent 1258944 commit 6cca577
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion viz_scripts/tests/test_scaffolding.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,14 @@ def test_get_quality_text_sensed(sensed_df):
result = scaffolding.get_quality_text_sensed(sensed_df)
assert result == "Based on 8 trips from 5 users"

def test_get_quality_text_sensed(sensed_df):
def test_get_quality_text_sensed_include_test_users(sensed_df):
result = scaffolding.get_quality_text_sensed(sensed_df, include_test_users=True)
assert result == "Based on 8 trips from 5 testers and participants"

def test_get_quality_text_numerator(sensed_df):
result = scaffolding.get_quality_text_sensed(sensed_df)
assert result == "Based on 8 trips from 5 users"

def test_get_quality_text_numerator_include_test_users(sensed_df):
result = scaffolding.get_quality_text_sensed(sensed_df, include_test_users=True)
assert result == "Based on 8 trips from 5 testers and participants"

0 comments on commit 6cca577

Please sign in to comment.