Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
wlorenzetti committed Sep 20, 2023
1 parent cb2602d commit 552a138
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions g3w-admin/core/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,12 +628,14 @@ def testCoreInterfaceOwsView(self):
jres = json.loads(res.content)

self.assertTrue(jres['result'])
self.assertEqual('Geoscopio_wms catasto', jres['title'])
self.assertTrue('image/png' in jres['map_formats'])
self.assertTrue('text/html' in jres['info_formats'])
self.assertEqual('Geoscopio_wms catasto'.lower(), jres['title'].lower())
self.assertTrue('GetMap' in jres['methods'] and 'GetFeatureInfo' in jres['methods'] and 'GetCapabilities' in jres['methods'])
self.assertTrue('image/png' in jres['methods']['GetMap']['formats'])
self.assertEqual(jres["methods"]["GetMap"]["urls"],[{'type': 'Get', 'url': 'https://www502.regione.toscana.it/ows_catasto/com.rt.wms.RTmap/ows?map=owscatasto&'}, {'type': 'Post', 'url': 'https://www502.regione.toscana.it/ows_catasto/com.rt.wms.RTmap/ows?map=owscatasto&'}])
self.assertTrue('text/html' in jres['methods']['GetFeatureInfo']['formats'])
self.assertEqual(len(jres['layers']), 21)

self.assertEqual(jres['layers'][1]['title'], 'Acque - AdT Catasto Terreni')
self.assertEqual(jres['layers'][1]['title'].lower(), 'Acque - AdT Catasto Terreni'.lower())
self.assertEqual(len(jres['layers'][1]['crss']), 20)


Expand Down

0 comments on commit 552a138

Please sign in to comment.