X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/wrpylib.git/blobdiff_plain/4dffa89e57d37435a09e1ec62889cb3670dc23ee..f71116f2cd846d18c7a120ca1ed640b2e68012fc:/tests/test_wrmwmarkup.py?ds=sidebyside diff --git a/tests/test_wrmwmarkup.py b/tests/test_wrmwmarkup.py index 189c7c1..77005db 100644 --- a/tests/test_wrmwmarkup.py +++ b/tests/test_wrmwmarkup.py @@ -127,7 +127,6 @@ def test_parse_wrmap(): def test_create_wrmap(): - attributes = {'lon': 11.21408895, 'lat': 47.2417134, 'zoom': 14, 'width': 700, 'height': 400} geojson = { 'type': 'FeatureCollection', 'features': @@ -158,10 +157,16 @@ def test_create_wrmap(): [11.230868, 47.244951], [11.237853, 47.245470]]}, 'properties': {'type': 'sledrun'} - }] + }], + 'properties': { + 'lon': 11.21408895, + 'lat': 47.2417134, + 'zoom': 14, + 'width': 700, + 'height': 400} } - wikitext = wrpylib.wrmwmarkup.create_wrmap(attributes, geojson) + wikitext = wrpylib.wrmwmarkup.create_wrmap(geojson) assert wikitext == u''' 47.240689 11.190454