]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/python/test_tools_sp_csv_loader.py
Special phrases documentation updated
[nominatim.git] / test / python / test_tools_sp_csv_loader.py
index aac8593b65ec771d91a6fa5630ca55e0f792115f..ccc9996d64c581c33c3d5107fcffe2ed80be554d 100644 (file)
@@ -13,10 +13,9 @@ def test_parse_csv(sp_csv_loader):
         Test method parse_csv()
         Should return the right SpecialPhrase objects.
     """
         Test method parse_csv()
         Should return the right SpecialPhrase objects.
     """
-    phrases = sp_csv_loader.parse_csv(sp_csv_loader.csv_path)
+    phrases = sp_csv_loader.parse_csv()
     assert check_phrases_content(phrases)
 
     assert check_phrases_content(phrases)
 
-
 def test_next(sp_csv_loader):
     """
         Test objects returned from the next() method.
 def test_next(sp_csv_loader):
     """
         Test objects returned from the next() method.
@@ -33,10 +32,10 @@ def test_check_csv_validity(sp_csv_loader):
         different exception than .csv is given.
     """
     sp_csv_loader.csv_path = 'test.csv'
         different exception than .csv is given.
     """
     sp_csv_loader.csv_path = 'test.csv'
-    sp_csv_loader.check_csv_validity(sp_csv_loader.csv_path)
+    sp_csv_loader.check_csv_validity()
     sp_csv_loader.csv_path = 'test.wrong'
     with pytest.raises(UsageError):
     sp_csv_loader.csv_path = 'test.wrong'
     with pytest.raises(UsageError):
-        assert sp_csv_loader.check_csv_validity(sp_csv_loader.csv_path)
+        assert sp_csv_loader.check_csv_validity()
 
 def check_phrases_content(phrases):
     """
 
 def check_phrases_content(phrases):
     """