-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from arthur-schnitzler/32-import-place-from-ge…
…onames-if-no-matching-wikidata-id-exists get_or_create form geonames
- Loading branch information
Showing
5 changed files
with
57 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from django.test import TestCase | ||
|
||
from normdata.utils import get_or_create_place_from_geonames | ||
|
||
GEONAMES_URL = "https://www.geonames.org/2461464/graret-oum-sedra.html" | ||
|
||
|
||
class NormdataTestCase(TestCase): | ||
def test_001_get_or_create_place_from_geonames(self): | ||
entity = get_or_create_place_from_geonames(GEONAMES_URL) | ||
self.assertEqual(entity.name, "Graret Oum Sedra") | ||
entity = get_or_create_place_from_geonames(GEONAMES_URL) | ||
entity.delete() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters