Skip to content

Add test for Archive.get_entry_by_title with distinct title and title… - #273

Open
Sriram-Nambiar wants to merge 1 commit into
openzim:mainfrom
Sriram-Nambiar:test-get-entry-by-title
Open

Sriram-Nambiar wants to merge 1 commit into
openzim:mainfrom
Sriram-Nambiar:test-get-entry-by-title

Conversation

@Sriram-Nambiar

Copy link
Copy Markdown

Fixes #223.

Adds test_get_entry_by_title_utf8 in tests/test_libzim_creator.py to verify that Archive.get_entry_by_title() resolves via the title index rather than path fallback.

Covers:

  • Standard ASCII title distinct from path
  • Unusual UTF-8 title containing accents, non-Latin scripts (Japanese, Hindi), emojis, and symbols
  • Verifying path is not resolved as title
  • Verifying missing title raises KeyError

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

get_entry_by_title not properly tested

1 participant