Modify ↓
Opened 7 years ago
Closed 7 years ago
#16992 closed defect (fixed)
Wikidata unit test failure
| Reported by: | Don-vip | Owned by: | floscher |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Plugin wikipedia | Version: | |
| Keywords: | wikidata | Cc: |
Description
See Jenkins.
org.wikipedia.api.wdq.WdqApiQueryTest.test Error Details Entry Q99236 not found in the result! expected:<1> but was:<2> Stack Trace junit.framework.AssertionFailedError: Entry Q99236 not found in the result! expected:<1> but was:<2> at org.wikipedia.api.wdq.WdqApiQueryTest.testFindInstancesOfClassesOrTheirSubclasses(WdqApiQueryTest.java:74) at org.wikipedia.api.wdq.WdqApiQueryTest.test(WdqApiQueryTest.java:66) at org.openstreetmap.josm.testutils.JOSMTestRules$TimeoutThread.run(JOSMTestRules.java:708) Standard Output 2018-11-12 10:43:37.164 INFO: POST https://query.wikidata.org/sparql (542 B) ... 2018-11-12 10:43:37.982 INFO: POST https://query.wikidata.org/sparql (format=json query=SELECT+DISTINCT+%3Fitem+%3FitemLabel+%3Fclasses+%3FclassesLabel+WHERE+%7B+VALUES+%3Fitem+%7B+wd%3AQ99236+wd%3AQ48435+wd%3AQ44440+wd%3AQ18712428+wd%3AQ494895+wd%3AQ83125+wd%3AQ54495+wd%3AQ459086+wd%3AQ507939+wd%3AQ52505+wd%3AQ201013+wd%3AQ18109819+wd%3AQ805835+wd%3AQ5459867+wd%3AQ379080+wd%3AQ3368242+%7D.+VALUES+%3Fclasses+%7B+wd%3AQ12280+wd%3AQ41176+%7D.+%3Fitem+wdt%3AP31%2Fwdt%3AP279*+%3Fsupertype.+%3Fsupertype+wdt%3AP279*+%3Fclasses.+SERVICE+wikibase%3Alabel+%7B+bd%3AserviceParam+wikibase%3Alanguage+%22en%22+%7D.+%7D) -> 200 (620 B)
Attachments (0)
Note:
See TracTickets
for help on using tickets.



The unit test seems to have fixed itself. It is currently depending on live data from Wikidata, which will eventually be fixed by mocking the API responses with WireMock. Closing for now.