openzim / openzim/python-libzim

get_entry_by_title not properly tested

Open
#223 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
108
Forks
29
Avg merge
9d 1h
Merged PRs (30d)
1

Description

Archive.get_entry_by_title() is not properly tested. We only test that incorrect value raises and that the fallback to path works but not that a valid title returns the proper entry.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate Archive.get_entry_by_title() and the existing tests covering incorrect values and path fallback. Add coverage for a valid title returning the expected entry, then run the relevant test suite and confirm that the new assertion passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.