udata 13.0.1.dev10__py3-none-any.whl → 13.0.1.dev12__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/commands/info.py CHANGED
@@ -43,9 +43,7 @@ def plugins():
43
43
  plugins = current_app.config["PLUGINS"]
44
44
  for name, description in entrypoints.ENTRYPOINTS.items():
45
45
  echo("{0} ({1})".format(white(description), name))
46
- if name == "udata.themes":
47
- actives = [current_app.config["THEME"]]
48
- elif name == "udata.avatars":
46
+ if name == "udata.avatars":
49
47
  actives = [avatar_config("provider")]
50
48
  else:
51
49
  actives = plugins
udata/entrypoints.py CHANGED
@@ -8,7 +8,6 @@ ENTRYPOINTS = {
8
8
  "udata.models": "Models and migrations",
9
9
  "udata.plugins": "Generic plugin",
10
10
  "udata.tasks": "Tasks and jobs",
11
- "udata.themes": "Themes",
12
11
  "udata.views": "Extra views",
13
12
  }
14
13
 
@@ -5,6 +5,7 @@ from flask import url_for
5
5
  from flask_security.recoverable import generate_reset_password_token
6
6
 
7
7
  from udata.commands.fixtures import UserFactory
8
+ from udata.i18n import lazy_gettext as _
8
9
  from udata.tests.api import PytestOnlyAPITestCase
9
10
  from udata.tests.helpers import capture_mails
10
11
 
@@ -105,7 +106,7 @@ class SecurityAPITest(PytestOnlyAPITestCase):
105
106
  assert len(mails) == 1
106
107
  assert len(mails[0].recipients) == 1
107
108
  assert mails[0].recipients[0] == "jane2@example.org"
108
- assert mails[0].subject == "Confirm your email address"
109
+ assert mails[0].subject == _("Confirm your email address")
109
110
 
110
111
  @pytest.mark.options(CAPTCHETAT_BASE_URL=None, SECURITY_RETURN_GENERIC_RESPONSES=True)
111
112
  def test_reset_password(self, api):
udata/tests/test_mail.py CHANGED
@@ -96,8 +96,8 @@ class MailGenerationTest(APITestCase):
96
96
  )
97
97
 
98
98
  assert len(mails) == 1
99
- assert "<strong>Some text:</strong> Some content" in mails[0].html
100
- assert "Some text: Some content" in mails[0].body
99
+ assert "<strong>Du texte :</strong> Some content" in mails[0].html
100
+ assert "Du texte : Some content" in mails[0].body
101
101
 
102
102
  @pytest.mark.options(DEFAULT_LANGUAGE="en")
103
103
  def test_labelled_bloc_truncation(self):
Binary file