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.
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):
"""