The order of XML attributes is now retained. master
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 29 Sep 2021 21:15:39 +0000 (23:15 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 29 Sep 2021 21:15:39 +0000 (23:15 +0200)
tests/test_wrmwmarkup.py

index d60129dc8742cf92cee04c263235d59a1ebdb945..b9ef0fbad0982c3ee44fc88dbab6454abc4c54d0 100644 (file)
@@ -441,7 +441,7 @@ class TestWrMap(unittest.TestCase):
 
         wikitext = wrpylib.wrmwmarkup.create_wrmap(geojson)
         self.assertEqual(wikitext, textwrap.dedent('''\
 
         wikitext = wrpylib.wrmwmarkup.create_wrmap(geojson)
         self.assertEqual(wikitext, textwrap.dedent('''\
-        <wrmap height="400" lat="47.241713" lon="11.214089" width="700" zoom="14">
+        <wrmap lon="11.214089" lat="47.241713" zoom="14" width="700" height="400">
 
         <gasthaus name="Rosskogelhütte" wiki="Rosskogelhütte">47.240689 N 11.190454 E</gasthaus>
         <parkplatz>47.245789 N 11.238971 E</parkplatz>
 
         <gasthaus name="Rosskogelhütte" wiki="Rosskogelhütte">47.240689 N 11.190454 E</gasthaus>
         <parkplatz>47.245789 N 11.238971 E</parkplatz>