Skip to content

Commit

Permalink
Fixed tests when using Zope 5.11.
Browse files Browse the repository at this point in the history
In one test we got a `mappingproxy` instead of a dictionary:

```
File "...plone.base-2.0.1-py3.10.egg/plone/base/tests/messages.rst", line 39, in messages.rst
Failed example:
    msg.mapping
Expected:
    {'name': 'Plone'}
Got:
    mappingproxy({'name': 'Plone'})
```
  • Loading branch information
mauritsvanrees committed Dec 6, 2024
1 parent e210fe2 commit fcd4d33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions news/956.tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Fixed tests when using Zope 5.11.
In one test we got a `mappingproxy` instead of a dictionary.
[maurits]
2 changes: 1 addition & 1 deletion src/plone/base/tests/messages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ And at last there is the possibility of variable substitution:
>>> msg.default
'Hello ${name}'

>>> msg.mapping
>>> dict(msg.mapping)
{'name': 'Plone'}

Messages with translation service set up
Expand Down

0 comments on commit fcd4d33

Please sign in to comment.