tests package¶
Submodules¶
tests.test_extractor module¶
-
class
tests.test_extractor.TestExtractor(methodName='runTest')[source]¶ Bases:
tests.basetest.Geograpy3Testtest 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:
tests.basetest.Geograpy3Testtest 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
-
testIssue_59_db_download()[source]¶ tests the correct downloading of the backup database in different configurations
-
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