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
f9c66181
Commit
f9c66181
authored
May 28, 2004
by
Paul Winkler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed call to Zope.startup()
parent
d2128c4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
14 deletions
+10
-14
lib/python/Products/PageTemplates/tests/testZopePageTemplate.py
...thon/Products/PageTemplates/tests/testZopePageTemplate.py
+10
-14
No files found.
lib/python/Products/PageTemplates/tests/testZopePageTemplate.py
View file @
f9c66181
...
...
@@ -8,20 +8,8 @@ Note: Tests require Zope >= 2.7
import
unittest
from
Testing.makerequest
import
makerequest
class
DummyFileUpload
:
def
__init__
(
self
,
data
=
''
,
filename
=
''
,
content_type
=
''
):
self
.
data
=
data
self
.
filename
=
filename
self
.
headers
=
{
'content_type'
:
content_type
}
def
read
(
self
):
return
self
.
data
import
Zope
Zope
.
startup
()
from
Testing.makerequest
import
makerequest
class
ZPTRegressions
(
unittest
.
TestCase
):
...
...
@@ -67,7 +55,15 @@ class ZPTRegressions(unittest.TestCase):
pt
=
self
.
app
.
pt1
self
.
assertEqual
(
pt
.
document_src
(),
self
.
text
)
class
DummyFileUpload
:
def
__init__
(
self
,
data
=
''
,
filename
=
''
,
content_type
=
''
):
self
.
data
=
data
self
.
filename
=
filename
self
.
headers
=
{
'content_type'
:
content_type
}
def
read
(
self
):
def
test_suite
():
return
unittest
.
makeSuite
(
ZPTRegressions
)
...
...
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