HomePhabricator

Add unit tests for _get_count_from_sparql

Description

Add unit tests for _get_count_from_sparql

This introduces a new Test class, SparqlQueryTest,
which mocks the Pywikibot SparqlQuery engine and provides
a helper method to assert that it ran with the given query.

This new class is then used to test _get_count_from_sparql.

Details

Provenance
JeanFredAuthored on Oct 14 2019, 7:19 PM
Parents
R2566:696c1deba05b: Add unit tests for Flask application update endpoint
Branches
Unknown
Tags
Unknown
ChangeId
None