tests package¶
Submodules¶
tests.test_extractor module¶
-
class
tests.test_extractor.
TestExtractor
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
test Extractor
-
check
(places, expectedList)[source]¶ check the places for begin non empty and having at least the expected List of elements
Parameters: - places (Places) – the places to check
- expectedList (list) – the list of elements to check
-
testIssue10
()[source]¶ test https://github.com/somnathrakshit/geograpy3/issues/10 Add ISO country code
-
testIssue7
()[source]¶ test https://github.com/somnathrakshit/geograpy3/issues/7 disambiguating countries
-
testIssue9
()[source]¶ test https://github.com/somnathrakshit/geograpy3/issues/9 [BUG]AttributeError: ‘NoneType’ object has no attribute ‘name’ on “Pristina, Kosovo”
-
tests.test_locator module¶
Created on 2020-09-19
@author: wf
-
class
tests.test_locator.
TestLocator
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
test the Locator class from the location module
-
checkExamples
(examples, countries, debug=False, check=True)[source]¶ check that the given example give results in the given countries :param examples: a list of example location strings :type examples: list :param countries: a list of expected country iso codes :type countries: list
-
testIssue15
()[source]¶ https://github.com/somnathrakshit/geograpy3/issues/15 test Issue 15 Disambiguate via population, gdp data
-
testIssue17
()[source]¶ test issue 17:
https://github.com/somnathrakshit/geograpy3/issues/17
[BUG] San Francisco, USA and Auckland, New Zealand should be locatable #17
-
testStackOverflow64418919
()[source]¶ https://stackoverflow.com/questions/64418919/problem-retrieving-region-in-us-with-geograpy3
-
tests.test_places module¶
tests.test_prefixtree module¶
tests.test_wikidata module¶
Created on 2020-09-23
@author: wf
-
class
tests.test_wikidata.
TestWikidata
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
test the wikidata access for cities
-
testGetCoordinateComponents
()[source]¶ test the splitting of coordinate components in WikiData query results
-