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
afba13e9
Commit
afba13e9
authored
Jan 07, 2007
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added provideUtility() calls for UnicodeEncodingConflictResolver
in order to make "zopectl test" shut up
parent
c940b163
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
lib/python/Products/PageTemplates/tests/testDTMLTests.py
lib/python/Products/PageTemplates/tests/testDTMLTests.py
+4
-0
lib/python/Products/PageTemplates/tests/testHTMLTests.py
lib/python/Products/PageTemplates/tests/testHTMLTests.py
+5
-0
lib/python/Products/PageTemplates/tests/test_ptfile.py
lib/python/Products/PageTemplates/tests/test_ptfile.py
+6
-0
No files found.
lib/python/Products/PageTemplates/tests/testDTMLTests.py
View file @
afba13e9
...
...
@@ -14,9 +14,12 @@
import
unittest
import
zope.component.testing
from
zope.component
import
provideUtility
from
zope.traversing.adapters
import
DefaultTraversable
from
Products.PageTemplates.tests
import
util
from
Products.PageTemplates.PageTemplate
import
PageTemplate
from
Products.PageTemplates.interfaces
import
IUnicodeEncodingConflictResolver
from
Products.PageTemplates.unicodeconflictresolver
import
DefaultUnicodeEncodingConflictResolver
from
Acquisition
import
Implicit
from
AccessControl
import
SecurityManager
from
AccessControl.SecurityManagement
import
noSecurityManager
...
...
@@ -50,6 +53,7 @@ class DTMLTests(zope.component.testing.PlacelessSetup, unittest.TestCase):
def
setUp
(
self
):
super
(
DTMLTests
,
self
).
setUp
()
zope
.
component
.
provideAdapter
(
DefaultTraversable
,
(
None
,))
provideUtility
(
DefaultUnicodeEncodingConflictResolver
,
IUnicodeEncodingConflictResolver
)
self
.
t
=
AqPageTemplate
()
self
.
policy
=
UnitTestSecurityPolicy
()
...
...
lib/python/Products/PageTemplates/tests/testHTMLTests.py
View file @
afba13e9
...
...
@@ -14,11 +14,14 @@
import
unittest
import
zope.component.testing
from
zope.component
import
provideUtility
from
zope.traversing.adapters
import
DefaultTraversable
from
Products.PageTemplates.tests
import
util
from
Products.PageTemplates.PageTemplate
import
PageTemplate
from
Products.PageTemplates.GlobalTranslationService
import
\
setGlobalTranslationService
from
Products.PageTemplates.interfaces
import
IUnicodeEncodingConflictResolver
from
Products.PageTemplates.unicodeconflictresolver
import
DefaultUnicodeEncodingConflictResolver
from
AccessControl
import
SecurityManager
from
AccessControl.SecurityManagement
import
noSecurityManager
...
...
@@ -67,6 +70,8 @@ class HTMLTests(zope.component.testing.PlacelessSetup, unittest.TestCase):
super
(
HTMLTests
,
self
).
setUp
()
zope
.
component
.
provideAdapter
(
DefaultTraversable
,
(
None
,))
provideUtility
(
DefaultUnicodeEncodingConflictResolver
,
IUnicodeEncodingConflictResolver
)
self
.
folder
=
f
=
Folder
()
f
.
laf
=
AqPageTemplate
()
f
.
t
=
AqPageTemplate
()
...
...
lib/python/Products/PageTemplates/tests/test_ptfile.py
View file @
afba13e9
...
...
@@ -15,6 +15,12 @@ class TypeSniffingTestCase(unittest.TestCase):
TEMPFILENAME
=
tempfile
.
mktemp
(
".zpt"
)
def
setUp
(
self
):
from
zope.component
import
provideUtility
from
Products.PageTemplates.interfaces
import
IUnicodeEncodingConflictResolver
from
Products.PageTemplates.unicodeconflictresolver
import
DefaultUnicodeEncodingConflictResolver
provideUtility
(
DefaultUnicodeEncodingConflictResolver
,
IUnicodeEncodingConflictResolver
)
def
tearDown
(
self
):
if
os
.
path
.
exists
(
self
.
TEMPFILENAME
):
os
.
unlink
(
self
.
TEMPFILENAME
)
...
...
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