Skip to content

Commit

Permalink
[Fixes #12657] Refactor supported type, fix data retriever and refact…
Browse files Browse the repository at this point in the history
…or handlers configuration
  • Loading branch information
mattiagiupponi committed Oct 18, 2024
1 parent 544b58f commit 50f7461
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions geonode/upload/tests/end2end/test_end2end.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,11 +444,13 @@ class ImporterWMSImportTest(BaseImporterEndToEndTest):
@mock.patch.dict(os.environ, {"GEONODE_GEODATABASE": "test_geonode_data", "ASYNC_SIGNALS": "False"})
@override_settings(GEODATABASE_URL=f"{geourl.split('/geonode_data')[0]}/test_geonode_data", ASYNC_SIGNALS=False)
def test_import_wms(self):
_, wms = WebMapService("http://geoserver:8080/geoserver/ows?service=WMS&version=1.3.0&request=GetCapabilities")
_, wms = WebMapService(
"https://development.demo.geonode.org/geoserver/ows?service=WMS&version=1.3.0&request=GetCapabilities"
)
resource_to_take = next(iter(wms.contents))
res = wms[next(iter(wms.contents))]
payload = {
"url": "http://geoserver:8080/geoserver/ows?service=WMS&version=1.3.0&request=GetCapabilities",
"url": "https://development.demo.geonode.org/geoserver/ows?service=WMS&version=1.3.0&request=GetCapabilities",
"title": "Remote Title",
"type": "wms",
"lookup": resource_to_take,
Expand Down

0 comments on commit 50f7461

Please sign in to comment.