File tree Expand file tree Collapse file tree 11 files changed +28
-17
lines changed Expand file tree Collapse file tree 11 files changed +28
-17
lines changed Original file line number Diff line number Diff line change 23
23
.project
24
24
.coverage
25
25
.pydevproject
26
+ .vscode
26
27
.settings
27
28
/* .egg-info /
28
29
/* .egg /
Original file line number Diff line number Diff line change @@ -146,5 +146,3 @@ notifications:
146
146
irc :
147
147
- irc.freenode.org#django-cms
148
148
- irc.freenode.org#django-cms-sprint
149
- webhooks :
150
- - http://addons.us-iad-rs.aldryn.io/en/travis-endpoint/
Original file line number Diff line number Diff line change 1
1
=== 3.7.0 (unreleased) ===
2
2
3
3
* Introduced Django 2.2 support.
4
+ * Fixed test suite.
4
5
5
6
6
7
=== 3.6.0 (2019-01-29) ===
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
import sys
3
+ import mock
3
4
4
5
from django .contrib .admin .models import CHANGE , LogEntry
5
6
from django .contrib .auth import get_user_model
@@ -855,7 +856,8 @@ def test_get_menus(self):
855
856
856
857
request = self .get_request ('/' )
857
858
renderer = menu_pool .get_renderer (request )
858
- nodes = renderer .get_nodes ()
859
+ with mock .patch ("menus.menu_pool.logger.error" ):
860
+ nodes = renderer .get_nodes ()
859
861
nodes_urls = [node .url for node in nodes ]
860
862
self .assertTrue (reverse ('sample-account' ) in nodes_urls )
861
863
self .assertFalse ('/en/child_page/page2/' in nodes_urls )
Original file line number Diff line number Diff line change 7
7
import sys
8
8
9
9
from django .utils .six .moves import StringIO
10
- from sphinx .application import Sphinx , SphinxWarning
10
+ from sphinx .application import Sphinx
11
+ from sphinx .errors import SphinxWarning
11
12
12
13
try :
13
14
import enchant
Original file line number Diff line number Diff line change @@ -65,9 +65,7 @@ We are working to improve the performance and reliability of our test suite. We'
65
65
problems, but need feedback from people using a wide range of systems and configurations in order
66
66
to benefit from their experience.
67
67
68
- Please use the open issue `#3684 Test suite is error-prone
69
- <https://github.com/divio/django-cms/issues/3684> `_ on our GitHub repository to report such
70
- problems.
68
+ Please report any issues on our `GitHub repository <https://github.com/divio/django-cms/issues >`_.
71
69
72
70
If you can help *improve * the test suite, your input will be especially valuable.
73
71
@@ -96,6 +94,14 @@ when the entire suite is run. To work around this you can invoke the test class
96
94
and it should then run without errors.
97
95
98
96
97
+ ``ERROR: zlib is required unless explicitly disabled using --disable-zlib, aborting ``
98
+ ------------------------------------------------------------------------------------------
99
+
100
+ If you run into that issue, make sure to install zlib using Homebrew::
101
+
102
+ brew install libjpeg zlib && brew link --force zlib
103
+
104
+
99
105
Advanced testing options
100
106
========================
101
107
Original file line number Diff line number Diff line change @@ -221,33 +221,34 @@ add a text plugin with the content ``'hello world'``. This is done in English::
221
221
cms.constants
222
222
*************
223
223
224
- .. module :: cms.constants
224
+ .. module :: cms.constants
225
225
226
- .. data :: TEMPLATE_INHERITANCE_MAGIC
226
+ .. data :: TEMPLATE_INHERITANCE_MAGIC
227
227
228
228
The token used to identify when a user selects "inherit" as template for a
229
229
page.
230
230
231
- .. data :: LEFT
231
+ .. data :: LEFT
232
232
233
233
Used as a position indicator in the toolbar.
234
234
235
- .. data :: RIGHT
235
+ .. data :: RIGHT
236
236
237
237
Used as a position indicator in the toolbar.
238
238
239
- .. data :: REFRESH
239
+ .. data :: REFRESH
240
240
241
241
Constant used by the toolbar.
242
242
243
- .. data :: EXPIRE_NOW
243
+ .. data :: EXPIRE_NOW
244
244
245
245
Constant of 0 (zero) used for cache control headers
246
246
247
- .. data :: MAX_EXPIRATION_TTL
247
+ .. data :: MAX_EXPIRATION_TTL
248
248
249
249
Constant of 31536000 or 365 days in seconds used for cache control headers
250
250
251
+
251
252
************
252
253
cms.app_base
253
254
************
Original file line number Diff line number Diff line change @@ -380,6 +380,7 @@ django CMS constants used in toolbars
380
380
*************************************
381
381
382
382
.. module :: cms.constants
383
+ :noindex:
383
384
384
385
.. data :: REFRESH_PAGE
385
386
Original file line number Diff line number Diff line change 1
- -f http://simple.crate.io/
2
1
MarkupSafe == 0.23
3
2
Pygments == 2.0.2
4
3
sphinx
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ Improvements and new features
15
15
=============================
16
16
17
17
* introduced support for Django 2.2
18
+ * Fixed test suite.
18
19
19
20
20
21
*********************
You can’t perform that action at this time.
0 commit comments