Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
407f13d7
Commit
407f13d7
authored
Jun 27, 2010
by
Godefroid Chapelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
also tests events are correctly populated
parent
07faa773
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
src/Zope2/App/tests/test_startup.py
src/Zope2/App/tests/test_startup.py
+21
-1
No files found.
src/Zope2/App/tests/test_startup.py
View file @
407f13d7
...
...
@@ -20,12 +20,32 @@ from zope.testing.loggingsupport import InstalledHandler
logged
=
"""Zope2.App.test_startup INFO
<class 'zope.processlifetime.DatabaseOpened'>
Zope2.App.test_startup INFO
<class 'zope.processlifetime.DatabaseOpenedWithRoot'>"""
<class 'ZODB.DB.DB'>
Zope2.App.test_startup INFO
Root not ready.
Zope2.App.test_startup INFO
<class 'zope.processlifetime.DatabaseOpenedWithRoot'>
Zope2.App.test_startup INFO
<class 'ZODB.DB.DB'>
Zope2.App.test_startup INFO
<class 'OFS.Application.Application'>"""
def
logevent
(
event
):
logger
=
logging
.
getLogger
(
'Zope2.App.test_startup'
)
logger
.
info
(
event
.
__class__
)
db
=
event
.
database
logger
.
info
(
db
.
__class__
)
conn
=
db
.
open
()
try
:
try
:
root
=
conn
.
root
()
app
=
root
[
'Application'
]
logger
.
info
(
app
.
__class__
)
except
KeyError
:
logger
.
info
(
'Root not ready.'
)
finally
:
conn
.
close
()
class
StartupTests
(
ZopeTestCase
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment