udata 10.0.6.dev33070__py2.py3-none-any.whl → 10.0.6.dev33079__py2.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 udata might be problematic. Click here for more details.
- udata/core/organization/models.py +1 -1
- udata/tests/organization/test_organization_model.py +6 -0
- {udata-10.0.6.dev33070.dist-info → udata-10.0.6.dev33079.dist-info}/METADATA +2 -1
- {udata-10.0.6.dev33070.dist-info → udata-10.0.6.dev33079.dist-info}/RECORD +8 -8
- {udata-10.0.6.dev33070.dist-info → udata-10.0.6.dev33079.dist-info}/LICENSE +0 -0
- {udata-10.0.6.dev33070.dist-info → udata-10.0.6.dev33079.dist-info}/WHEEL +0 -0
- {udata-10.0.6.dev33070.dist-info → udata-10.0.6.dev33079.dist-info}/entry_points.txt +0 -0
- {udata-10.0.6.dev33070.dist-info → udata-10.0.6.dev33079.dist-info}/top_level.txt +0 -0
|
@@ -117,7 +117,7 @@ class Organization(WithMetrics, OrganizationBadgeMixin, db.Datetimed, db.Documen
|
|
|
117
117
|
max_length=255, required=True, populate_from="name", update=True, follow=True
|
|
118
118
|
)
|
|
119
119
|
description = db.StringField(required=True)
|
|
120
|
-
url = db.
|
|
120
|
+
url = db.URLField()
|
|
121
121
|
image_url = db.StringField()
|
|
122
122
|
logo = db.ImageField(
|
|
123
123
|
fs=avatars, basename=default_image_basename, max_size=LOGO_MAX_SIZE, thumbnails=LOGO_SIZES
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
from datetime import datetime
|
|
2
2
|
|
|
3
|
+
import pytest
|
|
4
|
+
|
|
3
5
|
import udata.core.organization.constants as org_constants
|
|
4
6
|
from udata.core.dataservices.factories import DataserviceFactory
|
|
5
7
|
from udata.core.dataservices.models import Dataservice
|
|
@@ -81,6 +83,10 @@ class OrganizationModelTest(TestCase, DBTestMixin):
|
|
|
81
83
|
assert len(associations) == 1
|
|
82
84
|
assert org_certified_association in associations
|
|
83
85
|
|
|
86
|
+
def test_organization__url(self):
|
|
87
|
+
with pytest.raises(db.ValidationError):
|
|
88
|
+
OrganizationFactory(url="not-an-url")
|
|
89
|
+
|
|
84
90
|
|
|
85
91
|
class OrganizationBadgeTest(DBTestMixin, TestCase):
|
|
86
92
|
# Model badges can be extended in plugins, for example in udata-front
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: udata
|
|
3
|
-
Version: 10.0.6.
|
|
3
|
+
Version: 10.0.6.dev33079
|
|
4
4
|
Summary: Open data portal
|
|
5
5
|
Home-page: https://github.com/opendatateam/udata
|
|
6
6
|
Author: Opendata Team
|
|
@@ -140,6 +140,7 @@ It is collectively taken care of by members of the
|
|
|
140
140
|
|
|
141
141
|
## Current (in progress)
|
|
142
142
|
|
|
143
|
+
- Organization url is now a URLField and should be a valid URL [#3227](https://github.com/opendatateam/udata/pull/3227)
|
|
143
144
|
- Fix the `parse-url` command [#3225](https://github.com/opendatateam/udata/pull/3225)
|
|
144
145
|
- Add `with_drafts` argument to posts API [#3229](https://github.com/opendatateam/udata/pull/3229)
|
|
145
146
|
- Fix failing dataset save in update reuses metrics [#3230](https://github.com/opendatateam/udata/pull/3230)
|
|
@@ -150,7 +150,7 @@ udata/core/organization/csv.py,sha256=j6BJvXE8_6c-IWOPOg0C-j9KiCushoG1FQxzKVBDj2
|
|
|
150
150
|
udata/core/organization/factories.py,sha256=g8ubBcz79xbjvpunZ02IDOakFg1KE6cXjNkE9vFyFAc,624
|
|
151
151
|
udata/core/organization/forms.py,sha256=tscDb1_yOpbTx3ahl8ttA7oDkX9jIyzLc4gOf6WbN3s,3552
|
|
152
152
|
udata/core/organization/metrics.py,sha256=90romzr-FhnPKh-6UHBJ1Af2loDa4-8I1iZEgztA160,1062
|
|
153
|
-
udata/core/organization/models.py,sha256=
|
|
153
|
+
udata/core/organization/models.py,sha256=Nu7koTyCjdOtrPczI-UXw0OdKDaduSXYOYqYSIUPrHs,9362
|
|
154
154
|
udata/core/organization/notifications.py,sha256=i_36-l2y7fOGmnBmr5NDWmGGmrGRaCWbU-6XS4c2wQs,917
|
|
155
155
|
udata/core/organization/permissions.py,sha256=GD-9TMtRppVCPaC1ysXYrONvGJV-ArzAOXm2XMKf9yo,1256
|
|
156
156
|
udata/core/organization/rdf.py,sha256=TF2c85MHAu-TRiHNLxqV_Pw5z6sCgZrNszF9SYspQpk,1936
|
|
@@ -673,7 +673,7 @@ udata/tests/frontend/test_markdown.py,sha256=8E0XjByzmsY-RGdF2ESoL9Rklkfz3vcdJWK
|
|
|
673
673
|
udata/tests/organization/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
674
674
|
udata/tests/organization/test_csv_adapter.py,sha256=vgTVbPMqKipcdg7wi99pHk9ZNhqtuU-yneEaVW3pZmU,1564
|
|
675
675
|
udata/tests/organization/test_notifications.py,sha256=PGmME5BbYVtcPffeSE1sx47J6iAfm4RDAZIRv_MXDFE,1366
|
|
676
|
-
udata/tests/organization/test_organization_model.py,sha256=
|
|
676
|
+
udata/tests/organization/test_organization_model.py,sha256=ZEUHX7lvGMYMlHDpPiVUPeZeJeDDTp5owLEpFDSihjc,4311
|
|
677
677
|
udata/tests/organization/test_organization_rdf.py,sha256=Uf-OgXV615wLUHfcBTmp9QFuV8VCFmjI4wgvShve-mc,8074
|
|
678
678
|
udata/tests/organization/test_organization_tasks.py,sha256=ehPirwfLqaEcnJ9TLk3jGw3Xh-CVx1WXhvIDFYrT2iQ,2845
|
|
679
679
|
udata/tests/reuse/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -710,9 +710,9 @@ udata/translations/pt/LC_MESSAGES/udata.mo,sha256=18Y5YtzVKInDejw-R-45HNzsB3OVwJ
|
|
|
710
710
|
udata/translations/pt/LC_MESSAGES/udata.po,sha256=6IQvFk0NTDV5Jq-kLkkzpioWfrMaLDa1oQSevKFbxKQ,44943
|
|
711
711
|
udata/translations/sr/LC_MESSAGES/udata.mo,sha256=LWzCNS68hS2lbeo1bncZw4ZKqV2Dk_JUC-4SiF3o994,28163
|
|
712
712
|
udata/translations/sr/LC_MESSAGES/udata.po,sha256=X1ieIsJDmk_A_YiblpmUBzWWrVHta9F8yzCZLrjeW-Y,51435
|
|
713
|
-
udata-10.0.6.
|
|
714
|
-
udata-10.0.6.
|
|
715
|
-
udata-10.0.6.
|
|
716
|
-
udata-10.0.6.
|
|
717
|
-
udata-10.0.6.
|
|
718
|
-
udata-10.0.6.
|
|
713
|
+
udata-10.0.6.dev33079.dist-info/LICENSE,sha256=V8j_M8nAz8PvAOZQocyRDX7keai8UJ9skgmnwqETmdY,34520
|
|
714
|
+
udata-10.0.6.dev33079.dist-info/METADATA,sha256=7lwAKUC5GkDPXlisMKYZRCMY5fb_u-2T0FzoS_cKmhE,137645
|
|
715
|
+
udata-10.0.6.dev33079.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
|
|
716
|
+
udata-10.0.6.dev33079.dist-info/entry_points.txt,sha256=3SKiqVy4HUqxf6iWspgMqH8d88Htk6KoLbG1BU-UddQ,451
|
|
717
|
+
udata-10.0.6.dev33079.dist-info/top_level.txt,sha256=39OCg-VWFWOq4gCKnjKNu-s3OwFlZIu_dVH8Gl6ndHw,12
|
|
718
|
+
udata-10.0.6.dev33079.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|