Skip to content

Commit

Permalink
Follow up previous commit to make tests passe on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Jan 18, 2024
1 parent 2d406ee commit 8e8304a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lizmap/definitions/lizmap_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

CLOUD_DOMAIN = 'lizmap.com'
CLOUD_NAME = 'Lizmap Cloud'
CLOUD_MAX_PARENT_FOLDER = 2 # TODO Check COG, is-it 3 ?
CLOUD_MAX_PARENT_FOLDER = 2

CLOUD_ONLINE_URL = 'https://docs.lizmap.cloud'
CLOUD_ONLINE_LANGUAGES = ('en', 'fr')
Expand Down
4 changes: 4 additions & 0 deletions lizmap/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,10 @@ def target_server_changed(self):
# For deprecated features in LWC 3.7 about base layers
self.check_visibility_crs_3857()

if not current_metadata:
# In CI, to make tests happy
return

repositories = current_metadata.get('repositories')
if not repositories:
return
Expand Down

0 comments on commit 8e8304a

Please sign in to comment.