Skip to content

Commit

Permalink
docs: minor clarifications
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald committed Oct 20, 2023
1 parent ee6d554 commit aff40fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/openedx_tagging/core/tagging/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
1 change: 1 addition & 0 deletions tests/openedx_tagging/core/tagging/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit aff40fd

Please sign in to comment.