Skip to content

[BUG] test_wikipedia_disambiguation fails intermittently. #13

@ncdulo

Description

@ncdulo

Describe the bug
Once again, the Wikipedia does not seem to play nicely. The dynamic nature of results seems to be tripping me up. Again. This failure seems specific to the Disambiguation pages. test_wikipedia_disambiguation is intended to ensure we receive a DisambiguationError when we search for a known dis-ambiguous page. The test results seem to indicate that sometimes we receive that error, other times Wikipedia finds the closest matching page and returns that instead.

To Reproduce

  1. Run pytest
  2. Is not failing? Return to step 1.

Expected behavior
The pymediawiki module should throw a DisambiguationError for certain search terms. It does that, but it seems Wikipedia switches things around now and then. Sometimes we get it, sometimes we don't.

Additional context
This is bringing me back to Issue #2. A very similar test failure that was thought to be limited to my previous implementation. Looks like it's not totally my fault this time.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions