Attachment 'py.test-cpython2.7.txt'
Download 1 ============================= test session starts ==============================
2 platform linux2 -- Python 2.7.2 -- pytest-2.2.0
3 collecting ... collected 912 items / 10 skipped
4
5 MoinMoin/_tests/test_error.py ......
6 MoinMoin/_tests/test_sourcecode.py .........................................................................................................................................................................................................................................................................
7 MoinMoin/_tests/test_test_environ.py ..
8 MoinMoin/_tests/test_user.py .........................
9 MoinMoin/_tests/test_wikiutil.py ................
10 MoinMoin/apps/admin/_tests/test_admin.py .......
11 MoinMoin/apps/feed/_tests/test_feed.py ..
12 MoinMoin/apps/frontend/_tests/test_frontend.py ..FF...........................................ssss
13 MoinMoin/apps/misc/_tests/test_misc.py ..
14 MoinMoin/apps/serve/_tests/test_serve.py ..
15 MoinMoin/auth/_tests/test_auth.py ......
16 MoinMoin/auth/_tests/test_http.py .
17 MoinMoin/auth/_tests/test_log.py ...
18 MoinMoin/config/_tests/test_defaultconfig.py .
19 MoinMoin/converter/_tests/test__args.py .......
20 MoinMoin/converter/_tests/test__args_wiki.py ....
21 MoinMoin/converter/_tests/test__wiki_macro.py ....
22 MoinMoin/converter/_tests/test_creole_in.py ..........
23 MoinMoin/converter/_tests/test_include.py ...
24 MoinMoin/converter/_tests/test_link.py ....
25 MoinMoin/converter/_tests/test_mediawiki_in.py ....
26 MoinMoin/converter/_tests/test_moinwiki19_in.py .s............
27 MoinMoin/converter/_tests/test_moinwiki_in.py s............
28 MoinMoin/converter/_tests/test_moinwiki_out.py .........
29 MoinMoin/converter/_tests/test_rst_in.py .........
30 MoinMoin/converter/_tests/test_rst_out.py ...........
31 MoinMoin/converter/_tests/test_smiley.py ssssssss
32 MoinMoin/datastruct/backends/_tests/test_composite_dicts.py ....
33 MoinMoin/datastruct/backends/_tests/test_composite_groups.py .............
34 MoinMoin/datastruct/backends/_tests/test_config_dicts.py .....
35 MoinMoin/datastruct/backends/_tests/test_config_groups.py .........
36 MoinMoin/datastruct/backends/_tests/test_lazy_config_groups.py ..................
37 MoinMoin/datastruct/backends/_tests/test_wiki_dicts.py .....
38 MoinMoin/datastruct/backends/_tests/test_wiki_groups.py .............
39 MoinMoin/i18n/_tests/test_i18n.py ..
40 MoinMoin/items/_tests/test_Item.py .......................
41 MoinMoin/macro/_tests/test_Anchor.py .
42 MoinMoin/macro/_tests/test_Date.py ..
43 MoinMoin/macro/_tests/test_DateTime.py .
44 MoinMoin/macro/_tests/test_GetText.py .
45 MoinMoin/macro/_tests/test_GetVal.py .
46 MoinMoin/macro/_tests/test_Verbatim.py .
47 MoinMoin/macro/_tests/test__base.py ....
48 MoinMoin/mail/_tests/test_sendmail.py .........
49 MoinMoin/search/_tests/test_analyzers.py ...
50 MoinMoin/security/_tests/test_security.py ....................
51 MoinMoin/security/_tests/test_textcha.py ...
52 MoinMoin/security/_tests/test_ticket.py .
53 MoinMoin/storage/backends/_tests/test_fileserver.py ....
54 MoinMoin/storage/backends/_tests/test_stores.py ..........
55 MoinMoin/storage/middleware/_tests/test_indexing.py ...............ss
56 MoinMoin/storage/middleware/_tests/test_protecting.py .............................
57 MoinMoin/storage/middleware/_tests/test_routing.py .....
58 MoinMoin/storage/middleware/_tests/test_serialization.py .
59 MoinMoin/storage/stores/_tests/test_all.py ..ss......ss..ss......ss..ss......ss..ss......ss..ss......ssssssssssssss
60 MoinMoin/storage/stores/_tests/test_fs.py ......
61 MoinMoin/storage/stores/_tests/test_memory.py ......
62 MoinMoin/storage/stores/_tests/test_sqlite.py ..........
63 MoinMoin/themes/_tests/test_navi_bar.py .....
64 MoinMoin/util/_tests/test_crypto.py ........
65 MoinMoin/util/_tests/test_diff3.py .
66 MoinMoin/util/_tests/test_diff_html.py ..
67 MoinMoin/util/_tests/test_diff_text.py .
68 MoinMoin/util/_tests/test_filesys.py ....s........
69 MoinMoin/util/_tests/test_forms.py ......
70 MoinMoin/util/_tests/test_interwiki.py .....
71 MoinMoin/util/_tests/test_iri.py ..................
72 MoinMoin/util/_tests/test_lock.py .............
73 MoinMoin/util/_tests/test_md5crypt.py ..
74 MoinMoin/util/_tests/test_mime.py .....
75 MoinMoin/util/_tests/test_mimetype.py ...
76 MoinMoin/util/_tests/test_paramparser.py ..........................
77 MoinMoin/util/_tests/test_pysupport.py ...ss
78 MoinMoin/util/_tests/test_registry.py ..
79 MoinMoin/util/_tests/test_send_file.py .
80 MoinMoin/util/_tests/test_thread_monitor.py ..
81 MoinMoin/util/_tests/test_tree.py ....
82 MoinMoin/util/_tests/test_util.py .
83 MoinMoin/util/_tests/test_version.py .
84
85 =================================== FAILURES ===================================
86 ________________ TestFrontend.test_ajaxdestroy_item_name_route _________________
87
88 self = <test_frontend.TestFrontend object at 0x4dec990>
89
90 def test_ajaxdestroy_item_name_route(self):
91 self._test_view_post('frontend.ajaxdestroy', status='200 OK', content_types=['application/json', ], data=['{', '}'], form=dict(
92 comment='Test',
93 itemnames='["DoesntExist"]',
94 > ), viewopts=dict(item_name='DoesntExist'))
95
96 MoinMoin/apps/frontend/_tests/test_frontend.py:68:
97 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
98
99 self = <test_frontend.TestFrontend object at 0x4dec990>
100 viewname = 'frontend.ajaxdestroy', status = '200 OK'
101 content_types = ['application/json'], data = ['{', '}']
102 form = {'comment': 'Test', 'itemnames': '["DoesntExist"]'}
103 viewopts = {'item_name': 'DoesntExist'}
104
105 def _test_view_post(self, viewname, status='302 FOUND', content_types=('text/html; charset=utf-8', ), data=('<html>', '</html>'), form=None, viewopts=None):
106 if viewopts is None:
107 viewopts = {}
108 if form is None:
109 form = {}
110 print 'POST %s' % url_for(viewname, **viewopts)
111 with self.app.test_client() as c:
112 rv = c.post(url_for(viewname, **viewopts), data=form)
113 > assert rv.status == status
114 E assert '500 INTERNAL SERVER ERROR' == '200 OK'
115 E - 500 INTERNAL SERVER ERROR
116 E + 200 OK
117
118 MoinMoin/apps/frontend/_tests/test_frontend.py:46: AssertionError
119 ------------------------------- Captured stdout --------------------------------
120 POST /+ajaxdestroy/DoesntExist
121 ------------------------------- Captured stderr --------------------------------
122 2011-12-15 15:47:07,285 ERROR MoinMoin:1210 Exception on /+ajaxdestroy/DoesntExist [POST]
123 Traceback (most recent call last):
124 File "/home/moin/moin-2.0/env-python-2.7/lib/python2.7/site-packages/flask/app.py", line 1504, in wsgi_app
125 response = self.full_dispatch_request()
126 File "/home/moin/moin-2.0/env-python-2.7/lib/python2.7/site-packages/flask/app.py", line 1264, in full_dispatch_request
127 rv = self.handle_user_exception(e)
128 File "/home/moin/moin-2.0/env-python-2.7/lib/python2.7/site-packages/flask/app.py", line 1262, in full_dispatch_request
129 rv = self.dispatch_request()
130 File "/home/moin/moin-2.0/env-python-2.7/lib/python2.7/site-packages/flask/app.py", line 1248, in dispatch_request
131 return self.view_functions[rule.endpoint](**req.view_args)
132 File "/home/moin/moin-2.0/MoinMoin/apps/frontend/views.py", line 546, in ajaxdestroy
133 item.destroy(comment=comment, destroy_item=True)
134 File "/home/moin/moin-2.0/MoinMoin/items/__init__.py", line 410, in destroy
135 self.rev.item.destroy_all_revisions()
136 AttributeError: 'DummyItem' object has no attribute 'destroy_all_revisions'
137 _______________ TestFrontend.test_ajaxdestroy_no_item_name_route _______________
138
139 self = <test_frontend.TestFrontend object at 0x4f36410>
140
141 def test_ajaxdestroy_no_item_name_route(self):
142 self._test_view_post('frontend.ajaxdestroy', status='200 OK', content_types=['application/json', ], data=['{', '}'], form=dict(
143 comment='Test',
144 > itemnames='["DoesntExist"]',
145
146 MoinMoin/apps/frontend/_tests/test_frontend.py:73:
147 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
148
149 self = <test_frontend.TestFrontend object at 0x4f36410>
150 viewname = 'frontend.ajaxdestroy', status = '200 OK'
151 content_types = ['application/json'], data = ['{', '}']
152 form = {'comment': 'Test', 'itemnames': '["DoesntExist"]'}, viewopts = {}
153
154 def _test_view_post(self, viewname, status='302 FOUND', content_types=('text/html; charset=utf-8', ), data=('<html>', '</html>'), form=None, viewopts=None):
155 if viewopts is None:
156 viewopts = {}
157 if form is None:
158 form = {}
159 print 'POST %s' % url_for(viewname, **viewopts)
160 with self.app.test_client() as c:
161 rv = c.post(url_for(viewname, **viewopts), data=form)
162 > assert rv.status == status
163 E assert '500 INTERNAL SERVER ERROR' == '200 OK'
164 E - 500 INTERNAL SERVER ERROR
165 E + 200 OK
166
167 MoinMoin/apps/frontend/_tests/test_frontend.py:46: AssertionError
168 ------------------------------- Captured stdout --------------------------------
169 POST /+ajaxdestroy
170 ------------------------------- Captured stderr --------------------------------
171 2011-12-15 15:47:07,306 ERROR MoinMoin:1210 Exception on /+ajaxdestroy [POST]
172 Traceback (most recent call last):
173 File "/home/moin/moin-2.0/env-python-2.7/lib/python2.7/site-packages/flask/app.py", line 1504, in wsgi_app
174 response = self.full_dispatch_request()
175 File "/home/moin/moin-2.0/env-python-2.7/lib/python2.7/site-packages/flask/app.py", line 1264, in full_dispatch_request
176 rv = self.handle_user_exception(e)
177 File "/home/moin/moin-2.0/env-python-2.7/lib/python2.7/site-packages/flask/app.py", line 1262, in full_dispatch_request
178 rv = self.dispatch_request()
179 File "/home/moin/moin-2.0/env-python-2.7/lib/python2.7/site-packages/flask/app.py", line 1248, in dispatch_request
180 return self.view_functions[rule.endpoint](**req.view_args)
181 File "/home/moin/moin-2.0/MoinMoin/apps/frontend/views.py", line 546, in ajaxdestroy
182 item.destroy(comment=comment, destroy_item=True)
183 File "/home/moin/moin-2.0/MoinMoin/items/__init__.py", line 410, in destroy
184 self.rev.item.destroy_all_revisions()
185 AttributeError: 'DummyItem' object has no attribute 'destroy_all_revisions'
186 ============== 2 failed, 859 passed, 61 skipped in 59.58 seconds ===============
187
188 real 1m0.103s
189 user 0m42.757s
190 sys 0m1.497s
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.