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
249117a8
Commit
249117a8
authored
Sep 08, 2006
by
Stefan H. Holek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add copyright headers and bump version.
parent
db5ddbe9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
92 additions
and
3 deletions
+92
-3
lib/python/Testing/ZopeTestCase/doc/VERSION.txt
lib/python/Testing/ZopeTestCase/doc/VERSION.txt
+1
-1
lib/python/Testing/ZopeTestCase/tests.py
lib/python/Testing/ZopeTestCase/tests.py
+16
-1
lib/python/Testing/ZopeTestCase/zopedoctest/layerextraction.txt
...thon/Testing/ZopeTestCase/zopedoctest/layerextraction.txt
+1
-0
lib/python/Testing/ZopeTestCase/zopedoctest/testLayerExtraction.py
...n/Testing/ZopeTestCase/zopedoctest/testLayerExtraction.py
+58
-0
lib/python/Testing/ZopeTestCase/zopedoctest/tests.py
lib/python/Testing/ZopeTestCase/zopedoctest/tests.py
+16
-1
No files found.
lib/python/Testing/ZopeTestCase/doc/VERSION.txt
View file @
249117a8
ZopeTestCase 0.9.
8
ZopeTestCase 0.9.
9
lib/python/Testing/ZopeTestCase/tests.py
View file @
249117a8
"""Test runner that works with zope.testing.testrunner"""
##############################################################################
#
# Copyright (c) 2006 Zope Corporation 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.
#
##############################################################################
"""Test runner that works with zope.testing.testrunner
$Id"
"""
import
unittest
import
os
...
...
lib/python/Testing/ZopeTestCase/zopedoctest/layerextraction.txt
View file @
249117a8
...
...
@@ -3,3 +3,4 @@ variable
>>> getattr(self.app, 'LAYER_EXTRACTED', False)
True
lib/python/Testing/ZopeTestCase/zopedoctest/test
_layere
xtraction.py
→
lib/python/Testing/ZopeTestCase/zopedoctest/test
LayerE
xtraction.py
View file @
249117a8
from
Testing.ZopeTestCase
import
ZopeDocFileSuite
as
FileSuite
from
Testing.ZopeTestCase
import
ZopeDocTestSuite
as
TestSuite
from
Testing.ZopeTestCase.ZopeTestCase
import
ZopeTestCase
##############################################################################
#
# Copyright (c) 2006 Zope Corporation 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.
#
##############################################################################
"""Test layer extraction feature
$Id$
"""
from
unittest
import
TestSuite
from
Testing
import
ZopeTestCase
from
Testing.ZopeTestCase
import
ZopeDocFileSuite
from
Testing.ZopeTestCase
import
ZopeDocTestSuite
from
Testing.ZopeTestCase
import
transaction
import
transaction
as
txn
class
TestLayer
:
"""
...
...
@@ -13,30 +30,29 @@ class TestLayer:
>>> getattr(self.app, 'LAYER_EXTRACTED', False)
True
"""
@
classmethod
def
setUp
(
cls
):
app
=
ZopeTestCase
.
app
()
app
.
LAYER_EXTRACTED
=
True
t
x
n
.
commit
()
t
ransactio
n
.
commit
()
ZopeTestCase
.
close
(
app
)
@
classmethod
def
tearDown
(
cls
):
app
=
ZopeTestCase
.
app
()
del
app
.
LAYER_EXTRACTED
t
x
n
.
commit
()
del
attr
(
app
,
'LAYER_EXTRACTED'
)
t
ransactio
n
.
commit
()
ZopeTestCase
.
close
(
app
)
class
TestCase
(
ZopeTestCase
.
ZopeTestCase
):
layer
=
TestLayer
def
test_suite
():
import
unittest
fs
=
FileSuite
(
'layerextraction.txt'
,
test_class
=
TestCase
,
package
=
'Testing.ZopeTestCase.zopedoctest'
)
ts
=
TestSuite
(
'Testing.ZopeTestCase.zopedoctest.test_layerextraction'
,
test_class
=
TestCase
,
)
return
unittest
.
TestSuite
((
fs
,
ts
))
return
TestSuite
((
ZopeDocTestSuite
(
test_class
=
TestCase
),
ZopeDocFileSuite
(
'layerextraction.txt'
,
test_class
=
TestCase
),
))
lib/python/Testing/ZopeTestCase/zopedoctest/tests.py
View file @
249117a8
"""Test runner that works with zope.testing.testrunner"""
##############################################################################
#
# Copyright (c) 2006 Zope Corporation 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.
#
##############################################################################
"""Test runner that works with zope.testing.testrunner
$Id$
"""
import
unittest
import
os
...
...
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