From aff40fd17bd374b97ea8375b2bda75af601063ce Mon Sep 17 00:00:00 2001 From: Braden MacDonald Date: Fri, 20 Oct 2023 09:10:51 -0700 Subject: [PATCH] docs: minor clarifications --- tests/openedx_tagging/core/tagging/test_views.py | 4 ++-- tests/openedx_tagging/core/tagging/utils.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/openedx_tagging/core/tagging/test_views.py b/tests/openedx_tagging/core/tagging/test_views.py index b8d471f2..67b0b145 100644 --- a/tests/openedx_tagging/core/tagging/test_views.py +++ b/tests/openedx_tagging/core/tagging/test_views.py @@ -1189,10 +1189,10 @@ def test_large_search(self): data = response.data results = data["results"] assert pretty_format_tags(results, usage_count=None) == [ - "Tag 0 (None) (children: 12)", # First 3 results don't match but have children that match + "Tag 0 (None) (children: 12)", # First 2 results don't match but have children that match " Tag 1 (Tag 0) (children: 12)", " Tag 11 (Tag 1) (children: 0)", - " Tag 105 (Tag 0) (children: 12)", + " Tag 105 (Tag 0) (children: 12)", # Non-match but children match " Tag 110 (Tag 105) (children: 0)", " Tag 111 (Tag 105) (children: 0)", " Tag 112 (Tag 105) (children: 0)", diff --git a/tests/openedx_tagging/core/tagging/utils.py b/tests/openedx_tagging/core/tagging/utils.py index 3d6890e1..11cbf485 100644 --- a/tests/openedx_tagging/core/tagging/utils.py +++ b/tests/openedx_tagging/core/tagging/utils.py @@ -9,6 +9,7 @@ def pretty_format_tags(result, parent=True, external_id=False, usage_count=True) Format the result of get_filtered_tags() to be more human readable. Also works with other wrappers around get_filtered_tags, like api.get_tags() + Also works with serialized TagData from the REST API. """ pretty_results = [] for t in result: