This repository has been archived by the owner on Dec 18, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use zope.browserresource instead of zope.app.publisher.
Get rid of zope.app.testing test dependency. Remove SETUP.CFG and z3c.zrtresource-meta.zcml zcml slug.
- Loading branch information
Showing
5 changed files
with
70 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
############################################################################## | ||
# | ||
# Copyright (c) 2006 Lovely Systems and Contributors. | ||
# All Rights Reserved. | ||
# | ||
# This software is subject to the provisions of the Zope Public License, | ||
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. | ||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED | ||
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS | ||
# FOR A PARTICULAR PURPOSE. | ||
# | ||
############################################################################## | ||
"""Tag test setup | ||
$Id$ | ||
""" | ||
__docformat__ = "reStructuredText" | ||
|
||
import doctest | ||
import unittest | ||
import zope.component | ||
from zope.testing import cleanup, doctest | ||
from zope.traversing import testing | ||
from zope.traversing.interfaces import ITraversable | ||
from zope.traversing.namespace import view | ||
|
||
|
||
def setUp(test): | ||
cleanup.setUp() | ||
testing.setUp() | ||
zope.component.provideAdapter(view, (None, None), ITraversable, name="view") | ||
|
||
def tearDown(test): | ||
cleanup.tearDown() | ||
|
||
|
||
def test_suite(): | ||
|
||
return unittest.TestSuite(( | ||
doctest.DocFileSuite('README.txt', | ||
setUp=setUp, | ||
tearDown=tearDown, | ||
optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS, | ||
), | ||
doctest.DocFileSuite('zcml.txt', | ||
setUp=lambda test:cleanup.setUp(), | ||
tearDown=tearDown, | ||
optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS, | ||
), | ||
)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters