chore: fix formatting
This commit is contained in:
parent
c3516516cd
commit
200ee6ea10
1 changed files with 6 additions and 6 deletions
|
@ -101,9 +101,9 @@ def test_map_should_display_custom_tilelayer(map, live_server, tilelayers, page)
|
||||||
url_pattern = re.compile(
|
url_pattern = re.compile(
|
||||||
r"https://[abc]{1}.basemaps.cartocdn.com/rastertiles/voyager/\d+/\d+/\d+.png"
|
r"https://[abc]{1}.basemaps.cartocdn.com/rastertiles/voyager/\d+/\d+/\d+.png"
|
||||||
)
|
)
|
||||||
map.settings["properties"]["tilelayer"][
|
map.settings["properties"]["tilelayer"]["url_template"] = (
|
||||||
"url_template"
|
"https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png"
|
||||||
] = "https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png"
|
)
|
||||||
map.settings["properties"]["tilelayersControl"] = True
|
map.settings["properties"]["tilelayersControl"] = True
|
||||||
map.save()
|
map.save()
|
||||||
page.goto(f"{live_server.url}{map.get_absolute_url()}")
|
page.goto(f"{live_server.url}{map.get_absolute_url()}")
|
||||||
|
@ -115,9 +115,9 @@ def test_map_should_display_custom_tilelayer(map, live_server, tilelayers, page)
|
||||||
|
|
||||||
|
|
||||||
def test_can_have_smart_text_in_attribution(tilelayer, map, live_server, page):
|
def test_can_have_smart_text_in_attribution(tilelayer, map, live_server, page):
|
||||||
map.settings["properties"]["tilelayer"][
|
map.settings["properties"]["tilelayer"]["attribution"] = (
|
||||||
"attribution"
|
"© [[http://www.openstreetmap.org/copyright|OpenStreetMap]] contributors"
|
||||||
] = "© [[http://www.openstreetmap.org/copyright|OpenStreetMap]] contributors"
|
)
|
||||||
map.save()
|
map.save()
|
||||||
page.goto(f"{live_server.url}{map.get_absolute_url()}")
|
page.goto(f"{live_server.url}{map.get_absolute_url()}")
|
||||||
expect(page.get_by_text("© OpenStreetMap contributors")).to_be_visible()
|
expect(page.get_by_text("© OpenStreetMap contributors")).to_be_visible()
|
||||||
|
|
Loading…
Reference in a new issue