Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jlherzberg committed Oct 9, 2019
1 parent 2618c40 commit 50e8788
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/tagnews/tests/test_geocoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ def test_best_geostring(self):
)
output1 = ["1700", "block", "of", "S.", "Halsted", "Ave."]
# Empty geostring example
input2, output2 = [(), ()], None
for input, expected_output in zip([input1, input2], [output1, output2]):
actual_output = self.model.best_geostring(input)
input2, output2 = [(), ()], ''
for inpt, expected_output in zip([input1, input2], [output1, output2]):
actual_output = self.model.best_geostring(inpt)
assert (
actual_output == expected_output
), "ERROR: expected output != actual output for input {}/n {} != {}".format(
input, actual_output, expected_output
inpt, actual_output, expected_output
)

0 comments on commit 50e8788

Please sign in to comment.