umap-project 2.7.2__py3-none-any.whl → 2.7.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of umap-project might be problematic. Click here for more details.
- umap/__init__.py +1 -1
- umap/static/umap/js/modules/ui/dialog.js +1 -1
- umap/tests/base.py +7 -1
- umap/tests/fixtures/empty_tile.png +0 -0
- umap/tests/integration/conftest.py +3 -1
- umap/tests/integration/test_import.py +3 -1
- {umap_project-2.7.2.dist-info → umap_project-2.7.3.dist-info}/METADATA +1 -2
- {umap_project-2.7.2.dist-info → umap_project-2.7.3.dist-info}/RECORD +11 -10
- {umap_project-2.7.2.dist-info → umap_project-2.7.3.dist-info}/WHEEL +1 -1
- {umap_project-2.7.2.dist-info → umap_project-2.7.3.dist-info}/entry_points.txt +0 -0
- {umap_project-2.7.2.dist-info → umap_project-2.7.3.dist-info}/licenses/LICENSE +0 -0
umap/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION = "2.7.
|
|
1
|
+
VERSION = "2.7.3"
|
|
@@ -78,7 +78,6 @@ export default class Dialog extends WithTemplate {
|
|
|
78
78
|
event.preventDefault()
|
|
79
79
|
this.dialog.returnValue = 'accept'
|
|
80
80
|
this.close()
|
|
81
|
-
this.dialog.returnValue = undefined
|
|
82
81
|
})
|
|
83
82
|
}
|
|
84
83
|
this.dialog.addEventListener('keydown', (e) => {
|
|
@@ -143,6 +142,7 @@ export default class Dialog extends WithTemplate {
|
|
|
143
142
|
|
|
144
143
|
close() {
|
|
145
144
|
this.toggle(false)
|
|
145
|
+
this.dialog.returnValue = undefined
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
toggle(open = false) {
|
umap/tests/base.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import copy
|
|
2
2
|
import json
|
|
3
|
+
from pathlib import Path
|
|
3
4
|
|
|
4
5
|
import factory
|
|
5
6
|
from django.contrib.auth import get_user_model
|
|
@@ -40,7 +41,7 @@ class LicenceFactory(factory.django.DjangoModelFactory):
|
|
|
40
41
|
|
|
41
42
|
class TileLayerFactory(factory.django.DjangoModelFactory):
|
|
42
43
|
name = "Test zoom layer"
|
|
43
|
-
url_template = "
|
|
44
|
+
url_template = "https://{s}.test.org/osmfr/{z}/{x}/{y}.png"
|
|
44
45
|
attribution = "Test layer attribution"
|
|
45
46
|
|
|
46
47
|
class Meta:
|
|
@@ -150,3 +151,8 @@ def login_required(response):
|
|
|
150
151
|
redirect_url = reverse("login")
|
|
151
152
|
assert j["login_required"] == redirect_url
|
|
152
153
|
return True
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
def mock_tiles(route):
|
|
157
|
+
path = Path(__file__).parent / "fixtures/empty_tile.png"
|
|
158
|
+
route.fulfill(path=path)
|
|
Binary file
|
|
@@ -6,6 +6,8 @@ from pathlib import Path
|
|
|
6
6
|
import pytest
|
|
7
7
|
from playwright.sync_api import expect
|
|
8
8
|
|
|
9
|
+
from ..base import mock_tiles
|
|
10
|
+
|
|
9
11
|
|
|
10
12
|
@pytest.fixture(scope="session")
|
|
11
13
|
def browser_context_args(browser_context_args):
|
|
@@ -23,7 +25,7 @@ def set_timeout(context):
|
|
|
23
25
|
@pytest.fixture(autouse=True)
|
|
24
26
|
def mock_osm_tiles(page):
|
|
25
27
|
if not bool(os.environ.get("PWDEBUG", False)):
|
|
26
|
-
page.route("*/**/osmfr/**",
|
|
28
|
+
page.route("*/**/osmfr/**", mock_tiles)
|
|
27
29
|
|
|
28
30
|
|
|
29
31
|
@pytest.fixture
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import json
|
|
2
|
-
import os
|
|
3
2
|
import platform
|
|
4
3
|
import re
|
|
5
4
|
from pathlib import Path
|
|
@@ -10,6 +9,7 @@ from playwright.sync_api import expect
|
|
|
10
9
|
|
|
11
10
|
from umap.models import DataLayer
|
|
12
11
|
|
|
12
|
+
from ..base import mock_tiles
|
|
13
13
|
from .helpers import save_and_get_json
|
|
14
14
|
|
|
15
15
|
pytestmark = pytest.mark.django_db
|
|
@@ -72,6 +72,8 @@ def test_umap_import_from_file(live_server, tilelayer, page):
|
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
def test_umap_import_from_textarea(live_server, tilelayer, page, settings):
|
|
75
|
+
page.route("https://tile.openstreetmap.fr/hot/**", mock_tiles)
|
|
76
|
+
|
|
75
77
|
settings.UMAP_ALLOW_ANONYMOUS = True
|
|
76
78
|
page.goto(f"{live_server.url}/map/new/")
|
|
77
79
|
page.get_by_role("button", name="Open browser").click()
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: umap-project
|
|
3
|
-
Version: 2.7.
|
|
3
|
+
Version: 2.7.3
|
|
4
4
|
Summary: Create maps with OpenStreetMap layers in a minute and embed them in your site.
|
|
5
5
|
Author-email: Yohan Boniface <yb@enix.org>
|
|
6
6
|
Maintainer-email: David Larlet <david@larlet.fr>
|
|
7
|
-
License-File: LICENSE
|
|
8
7
|
Keywords: django,geodjango,leaflet,map,openstreetmap
|
|
9
8
|
Classifier: Development Status :: 4 - Beta
|
|
10
9
|
Classifier: Intended Audience :: Developers
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
umap/__init__.py,sha256=
|
|
1
|
+
umap/__init__.py,sha256=zIpjG_2UB2HkyYPrqLS6Yqc8i-nJHx9wup2trY-yyOQ,18
|
|
2
2
|
umap/admin.py,sha256=LoQytPGK6pLBqZ5QgQ9DIPAxhTG31cTtHOCqO9BY5S4,2645
|
|
3
3
|
umap/apps.py,sha256=5ssKqPUuNJlapaBmr4LY_HDb7J1NFCT3wzythxQOOfs,109
|
|
4
4
|
umap/asgi.py,sha256=CuVSNBwNb4AvuaD_Ha3ehtvf-c46ijZoVOSoP6WhXp8,432
|
|
@@ -264,7 +264,7 @@ umap/static/umap/js/modules/sync/updaters.js,sha256=WP6hB2gyQKF18hOCy1Ll3UBeYRe2
|
|
|
264
264
|
umap/static/umap/js/modules/sync/websocket.js,sha256=1UtvsTAm-gkfpBRcLPykPvDyax3mQSxG0KOjWhqnAIU,647
|
|
265
265
|
umap/static/umap/js/modules/ui/base.js,sha256=8PN8TRIBqTANRufwVvV0XzOdaYQuRCnlWGbTGq8FZiM,2491
|
|
266
266
|
umap/static/umap/js/modules/ui/contextmenu.js,sha256=VzC94uGUt8DkzC60Gcbz-MxivfSITEqUC91Fkpq1gjk,2550
|
|
267
|
-
umap/static/umap/js/modules/ui/dialog.js,sha256=
|
|
267
|
+
umap/static/umap/js/modules/ui/dialog.js,sha256=Jh2jb4qjxx_eTGAU9cRZHwWhtyk2HFVg7dkP8eCtBLQ,5403
|
|
268
268
|
umap/static/umap/js/modules/ui/panel.js,sha256=aPogrO5AkxHTwtjw6oQri21eyIwDlOKNKp79ZPp2Ogs,3121
|
|
269
269
|
umap/static/umap/js/modules/ui/tooltip.js,sha256=M2KBb5CA4AvaA-6QgfpUKMYQuGXzTqx4ZVA9fkMRBEs,1642
|
|
270
270
|
umap/static/umap/locale/am_ET.js,sha256=oNSeVIZMKnxigBUVokMJSzYjLFGs5u4n2zzNjAtOV0A,33119
|
|
@@ -479,7 +479,7 @@ umap/templates/umap/components/alerts/alert.html,sha256=eQRALES_PzIP3qs16eXq9SGz
|
|
|
479
479
|
umap/templatetags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
480
480
|
umap/templatetags/umap_tags.py,sha256=OumX1AI9uWzNP3zbjexTz7lGp10FweW0NRFSsdQ_cuU,1759
|
|
481
481
|
umap/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
482
|
-
umap/tests/base.py,sha256=
|
|
482
|
+
umap/tests/base.py,sha256=gR0wgPfTy6rqFLqAGSG2rHkQiRSbVsg1Qqs5CrSQIQg,4618
|
|
483
483
|
umap/tests/conftest.py,sha256=KQCZanCTl1ABLIKOuyxS_cpBoXGiwjDc29jsLBiSWxY,1633
|
|
484
484
|
umap/tests/settings.py,sha256=tY70LMFXyo_WijswqGyeWai7vBzM62k7IA8pkkbc9y4,816
|
|
485
485
|
umap/tests/test_clean_tilelayer.py,sha256=wGTd_AHOTmQ4QMswAyc-1_lJmQOSyhY3OahLAusEIdA,2515
|
|
@@ -500,6 +500,7 @@ umap/tests/fixtures/categorized_highway.geojson,sha256=p7QHOd8nXi7yVq37gY6Ca8BXk
|
|
|
500
500
|
umap/tests/fixtures/choropleth_region_chomage.geojson,sha256=mVVbYlf92Sr3wWH9ETm43FdHz1U3zjsn91HuU5H5r4Y,21325
|
|
501
501
|
umap/tests/fixtures/circle.svg,sha256=P37vV2PhFPecAtY8qR3VlRuB79_wFaMeqKm2tX-2tkA,254
|
|
502
502
|
umap/tests/fixtures/display_on_load.umap,sha256=eo4ecB3QUeCVu1u7COp7mZ8sCPkf2j4gGERE7N1v8GU,1845
|
|
503
|
+
umap/tests/fixtures/empty_tile.png,sha256=HHezSHZcZimfhpKaSSVOPm14k9OTAyL_eHndptkHGJk,103
|
|
503
504
|
umap/tests/fixtures/star.svg,sha256=zIi-j16L1Fzxtqz2rV2NDDm1NDHBWQfM5O6MIeoxgEU,256
|
|
504
505
|
umap/tests/fixtures/test_circles_layer.geojson,sha256=8S_zh4MA-5qqm43ETKfGz0hw84vuN2cXB1vTz9Syu3k,6454
|
|
505
506
|
umap/tests/fixtures/test_import_osm_relation.json,sha256=SjZFqZ-qnxcrUnVkb43jI9iMBF8Il3-OPqxh62nNH9o,4249
|
|
@@ -514,7 +515,7 @@ umap/tests/fixtures/test_upload_georss.xml,sha256=lfmVA0qGDakCG48jjsLmSIE1U6iZ9y
|
|
|
514
515
|
umap/tests/fixtures/test_upload_missing_name.json,sha256=klSMHb6laTghzU4AdIG1_p5UZ1LbAJCCKnJea0qEFAI,4566
|
|
515
516
|
umap/tests/fixtures/test_upload_non_linear_ring.json,sha256=WOR0NnJHNUUW6VKzZyIxU7WL1llnAmEVJwCWla6XOds,1525
|
|
516
517
|
umap/tests/integration/__init__.py,sha256=nqQ2miDnSZOKDuFhQ5saFN3qQuK73Cs6xL9Od-mEKG4,57
|
|
517
|
-
umap/tests/integration/conftest.py,sha256=
|
|
518
|
+
umap/tests/integration/conftest.py,sha256=BQOBTX83QcF_M75ufbEm96cmIUSHn-REAmv3gKdrHaE,2448
|
|
518
519
|
umap/tests/integration/helpers.py,sha256=vvGX5b-DS2fMVDdeXz1lH2IleZkRHjyL7DVvatJU8Do,344
|
|
519
520
|
umap/tests/integration/test_anonymous_owned_map.py,sha256=d7YBsnO79NHRHgdYCYqmyALzeHtV__9dWObtvEfv0VM,10673
|
|
520
521
|
umap/tests/integration/test_basics.py,sha256=_aURyfOJen41AQtTvjQ2pHP5GNc1KVV6NRSspSuxKL0,3760
|
|
@@ -536,7 +537,7 @@ umap/tests/integration/test_edit_polygon.py,sha256=JeIW6NcBltIl958uJ_T-0dRCT5gOo
|
|
|
536
537
|
umap/tests/integration/test_export_map.py,sha256=jH0BXm-7Ov26OEkve9-xKMfRwXwR73zRrZLIQusyUOY,12112
|
|
537
538
|
umap/tests/integration/test_facets_browser.py,sha256=J--y2rpI__0RIPzcTx4Kn2UwuurFdh-6i_Y4c6GxUyY,10658
|
|
538
539
|
umap/tests/integration/test_features_id_generation.py,sha256=e99_8AxeMAi53JjVGlsI32zlrXGAU19FHJfTuYdiBVQ,1511
|
|
539
|
-
umap/tests/integration/test_import.py,sha256=
|
|
540
|
+
umap/tests/integration/test_import.py,sha256=uD-gSQmlqYv1-htuuadGBE-VWfA_915o0ToSTaLrNhA,30344
|
|
540
541
|
umap/tests/integration/test_map.py,sha256=2ZO54RFVycJKGczfioX0nU1oCu29FVC9hR6wbT4s1NE,8736
|
|
541
542
|
umap/tests/integration/test_map_list.py,sha256=l1FImKnJkY7DupYX8waKaUZqhnORR20L8dzaqu-eF8E,1280
|
|
542
543
|
umap/tests/integration/test_map_preview.py,sha256=kP0vkEiUN7EJNCvZgNeUAzrrXfgwpU0S2UnmOBV4P5A,3540
|
|
@@ -554,8 +555,8 @@ umap/tests/integration/test_view_marker.py,sha256=f_WqtVe0ZfDX_SOeNXFh54ubvhJWeu
|
|
|
554
555
|
umap/tests/integration/test_view_polygon.py,sha256=NMJC6Nt9VpQ8FIU9Pqq2OspHv49xsWlsoXCr8iBa0VA,2060
|
|
555
556
|
umap/tests/integration/test_view_polyline.py,sha256=n1QVIdl-Xg9yN9o-Jc6VnPhFAuUspsgY0odiUe_jJC4,1598
|
|
556
557
|
umap/tests/integration/test_websocket_sync.py,sha256=pcEoXgEFvLBdmQA_rGa5BcHE2eBe3P0qZ6X3j4goRzQ,12764
|
|
557
|
-
umap_project-2.7.
|
|
558
|
-
umap_project-2.7.
|
|
559
|
-
umap_project-2.7.
|
|
560
|
-
umap_project-2.7.
|
|
561
|
-
umap_project-2.7.
|
|
558
|
+
umap_project-2.7.3.dist-info/METADATA,sha256=Kf1Y2qkgxEHGHAZoAEfNtkNU240TvT3x7pV3gyDSsIw,2866
|
|
559
|
+
umap_project-2.7.3.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
560
|
+
umap_project-2.7.3.dist-info/entry_points.txt,sha256=gz-KDQfEsMLBae8ABOD3foJsCYGPW1tA4Y394R_1RW8,39
|
|
561
|
+
umap_project-2.7.3.dist-info/licenses/LICENSE,sha256=kQtrtRKgiPhcl7aO0-lmvbrNAXu7WHyiXvPrUk-TD2Q,820
|
|
562
|
+
umap_project-2.7.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|