From 6cca5772a3bc4baa0e3693dc456722f0f8815f41 Mon Sep 17 00:00:00 2001 From: Ananta Shrestha Date: Wed, 27 Nov 2024 13:01:51 -0700 Subject: [PATCH] Update unit tests for get_quality_text_numerator() --- viz_scripts/tests/test_scaffolding.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/viz_scripts/tests/test_scaffolding.py b/viz_scripts/tests/test_scaffolding.py index 9bdd781..ed2f47f 100644 --- a/viz_scripts/tests/test_scaffolding.py +++ b/viz_scripts/tests/test_scaffolding.py @@ -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" \ No newline at end of file