Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zope-container
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
Boxiang Sun
zope-container
Commits
6bdb0226
Commit
6bdb0226
authored
Dec 15, 2009
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Break testing dependency on zope.app.testing.
parent
22b2ded0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
15 deletions
+21
-15
CHANGES.txt
CHANGES.txt
+2
-0
setup.py
setup.py
+3
-2
src/zope/container/configure.zcml
src/zope/container/configure.zcml
+1
-1
src/zope/container/tests/test_dependencies.py
src/zope/container/tests/test_dependencies.py
+15
-12
No files found.
CHANGES.txt
View file @
6bdb0226
...
...
@@ -5,6 +5,8 @@ CHANGES
3.10.0 (Unreleased)
-------------------
- Break testing dependency on zope.app.testing.
- Break testing dependency on zope.app.dependable by moving the code and tests
into that package.
...
...
setup.py
View file @
6bdb0226
...
...
@@ -63,8 +63,9 @@ setup(name='zope.container',
],
include_dirs
=
[
'include'
]),
],
extras_require
=
dict
(
test
=
[
'zope.copypastemove'
,
'zope.app.testing'
,
test
=
[
'zope.configuration'
,
'zope.copypastemove'
,
'zope.security'
,
]),
install_requires
=
[
'setuptools'
,
'zope.interface'
,
...
...
src/zope/container/configure.zcml
View file @
6bdb0226
...
...
@@ -84,7 +84,7 @@
<adapter
for="zope.container.interfaces.ISimpleReadContainer
zope.publisher.interfaces.browser.IBrowserRequest"
zope.publisher.interfaces.browser.IBrowserRequest"
provides="zope.publisher.interfaces.browser.IBrowserPublisher"
factory="zope.container.traversal.ItemTraverser"
permission="zope.Public"
...
...
src/zope/container/tests/test_dependencies.py
View file @
6bdb0226
import
os
import
unittest
from
zope.configuration.xmlconfig
import
XMLConfig
from
zope.interface
import
implements
import
zope.component
from
zope.app.testing
import
functional
from
zope.publisher.browser
import
TestRequest
from
zope.publisher.interfaces.browser
import
IBrowserPublisher
from
zope.container.traversal
import
ItemTraverser
ContainerLayer
=
functional
.
ZCMLLayer
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'ftest_zcml_dependencies.zcml'
),
__name__
,
'ContainerLayer'
,
allow_teardown
=
True
)
from
zope.container.interfaces
import
IItemContainer
from
zope.container.interfaces
import
ISimpleReadContainer
from
zope.container.traversal
import
ItemTraverser
from
zope.container.testing
import
ContainerPlacelessSetup
class
ZCMLDependencies
(
functional
.
BrowserTestCase
):
class
ZCMLDependencies
(
ContainerPlacelessSetup
,
unittest
.
TestCase
):
def
test_zcml_can_load_with_only_zope_component_meta
(
self
):
# this is just an example. It is supposed to show that the
# configure.zcml file has loaded successfully.
import
zope.component
XMLConfig
(
'meta.zcml'
,
zope
.
component
)()
import
zope.security
XMLConfig
(
'meta.zcml'
,
zope
.
security
)()
XMLConfig
(
'permissions.zcml'
,
zope
.
security
)()
import
zope.container
XMLConfig
(
'configure.zcml'
,
zope
.
container
)()
request
=
TestRequest
()
class
SampleItemContainer
(
object
):
...
...
@@ -45,7 +49,6 @@ class ZCMLDependencies(functional.BrowserTestCase):
def
test_suite
():
suite
=
unittest
.
TestSuite
()
ZCMLDependencies
.
layer
=
ContainerLayer
suite
.
addTest
(
unittest
.
makeSuite
(
ZCMLDependencies
))
return
suite
...
...
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