Skip to content
Permalink
Browse files

wsgi: test /missing-streets/.../update-result

Tested-by: Travis
  • Loading branch information
vmiklos authored and Travis CI committed Jan 14, 2020
1 parent 8cfc8c1 commit b6e8f087c50184a6eb77dbd9cb1cf807b164d730
Showing with 6 additions and 0 deletions.
  1. +6 −0 tests/test_wsgi.py
@@ -269,6 +269,12 @@ def test_view_query_well_formed(self) -> None:
results = root.findall("body/pre")
self.assertEqual(len(results), 1)

def test_update_result_link(self) -> None:
"""Tests if the update-result output links back to the correct page."""
root = self.get_dom_for_path("/osm/missing-housenumbers/gazdagret/update-result")
results = root.findall("body/a[@href='/osm/missing-housenumbers/gazdagret/view-result']")
self.assertEqual(len(results), 1)


class TestStreetHousenumbers(TestWsgi):
"""Tests handle_street_housenumbers()."""

0 comments on commit b6e8f08

Please sign in to comment.
You can’t perform that action at this time.