diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-10-26 20:58:21 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-10-26 20:58:21 +0200 |
commit | 46a7d6cea36c6dfe516e52c9b19309472f162c17 (patch) | |
tree | a3d98f35885d9a5d20d9eb4004eb16b131edfd20 /ishtar_common/tests.py | |
parent | 9c780920b2773ac92e46ec07e29a3e489c8357f7 (diff) | |
download | Ishtar-46a7d6cea36c6dfe516e52c9b19309472f162c17.tar.bz2 Ishtar-46a7d6cea36c6dfe516e52c9b19309472f162c17.zip |
Command: import geofla csv
Diffstat (limited to 'ishtar_common/tests.py')
-rw-r--r-- | ishtar_common/tests.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py index bbb449fe3..d882cd85b 100644 --- a/ishtar_common/tests.py +++ b/ishtar_common/tests.py @@ -107,6 +107,14 @@ class CommandsTestCase(TestCase): self.assertEqual(parcel_nb - 1, Parcel.objects.count()) self.assertEqual(Parcel.objects.filter(pk=p.pk).count(), 0) + def test_import_geofla(self): + town_nb = models.Town.objects.count() + out = StringIO() + call_command('import_geofla_csv', + '../ishtar_common/tests/geofla-test.csv', stdout=out) + self.assertEqual(town_nb + 9, models.Town.objects.count()) + + class WizardTestFormData(object): """ |