X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/fb0ebb5bf053e146a56c7e8c6727aa99c6de39f8..a33f2c0f5ba43df533b6e137f9151fe67feb20a1:/test/python/test_tools_sp_csv_loader.py diff --git a/test/python/test_tools_sp_csv_loader.py b/test/python/test_tools_sp_csv_loader.py index aac8593b..ccc9996d 100644 --- a/test/python/test_tools_sp_csv_loader.py +++ b/test/python/test_tools_sp_csv_loader.py @@ -13,10 +13,9 @@ def test_parse_csv(sp_csv_loader): 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) - 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' - 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): - assert sp_csv_loader.check_csv_validity(sp_csv_loader.csv_path) + assert sp_csv_loader.check_csv_validity() def check_phrases_content(phrases): """