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
5a77fb50
Commit
5a77fb50
authored
Jan 29, 2009
by
Stefan H. Holek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a layer to load the CA. We seem to have gotten it by accident before, oops.
parent
bf82aebd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
lib/python/OFS/tests/testCopySupportHooks.py
lib/python/OFS/tests/testCopySupportHooks.py
+20
-2
No files found.
lib/python/OFS/tests/testCopySupportHooks.py
View file @
5a77fb50
...
@@ -5,6 +5,9 @@ Zope2.startup()
...
@@ -5,6 +5,9 @@ Zope2.startup()
import
transaction
import
transaction
from
zope.testing
import
cleanup
from
Products.Five
import
zcml
from
Testing.makerequest
import
makerequest
from
Testing.makerequest
import
makerequest
from
AccessControl.SecurityManagement
import
newSecurityManager
from
AccessControl.SecurityManagement
import
newSecurityManager
...
@@ -55,12 +58,27 @@ class TestFolder(Folder):
...
@@ -55,12 +58,27 @@ class TestFolder(Folder):
from
Products.Five.eventconfigure
import
setDeprecatedManageAddDelete
from
Products.Five.eventconfigure
import
setDeprecatedManageAddDelete
setDeprecatedManageAddDelete
(
TestItem
)
setDeprecatedManageAddDelete
(
TestFolder
)
class
HookLayer
:
@
classmethod
def
setUp
(
cls
):
cleanup
.
cleanUp
()
zcml
.
_initialized
=
0
zcml
.
load_site
()
setDeprecatedManageAddDelete
(
TestItem
)
setDeprecatedManageAddDelete
(
TestFolder
)
@
classmethod
def
tearDown
(
cls
):
cleanup
.
cleanUp
()
zcml
.
_initialized
=
0
class
HookTest
(
unittest
.
TestCase
):
class
HookTest
(
unittest
.
TestCase
):
layer
=
HookLayer
def
setUp
(
self
):
def
setUp
(
self
):
self
.
app
=
makerequest
(
Zope2
.
app
())
self
.
app
=
makerequest
(
Zope2
.
app
())
try
:
try
:
...
...
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