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
197d1cba
Commit
197d1cba
authored
Jun 27, 2010
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove explicit product installs, these aren't used by ZODBMountPoint
parent
d5f5d75a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
src/Products/ZODBMountPoint/tests/testMountPoint.py
src/Products/ZODBMountPoint/tests/testMountPoint.py
+1
-12
No files found.
src/Products/ZODBMountPoint/tests/testMountPoint.py
View file @
197d1cba
...
@@ -20,7 +20,6 @@ import sys
...
@@ -20,7 +20,6 @@ import sys
import
unittest
import
unittest
import
transaction
import
transaction
from
OFS.Application
import
Application
from
OFS.Application
import
Application
from
OFS.Application
import
get_folder_permissions
from
OFS.Folder
import
Folder
from
OFS.Folder
import
Folder
import
App.config
import
App.config
from
Products.ZODBMountPoint.MountedObject
import
manage_addMounts
from
Products.ZODBMountPoint.MountedObject
import
manage_addMounts
...
@@ -97,7 +96,7 @@ class MountingTests(unittest.TestCase):
...
@@ -97,7 +96,7 @@ class MountingTests(unittest.TestCase):
conf
=
DBTab
(
mount_factories
,
mount_points
)
conf
=
DBTab
(
mount_factories
,
mount_points
)
d
=
App
.
config
.
DefaultConfiguration
()
d
=
App
.
config
.
DefaultConfiguration
()
d
.
dbtab
=
conf
d
.
dbtab
=
conf
d
.
enable_product_installation
=
True
d
.
enable_product_installation
=
True
# TODO
App
.
config
.
setConfiguration
(
d
)
App
.
config
.
setConfiguration
(
d
)
self
.
conf
=
conf
self
.
conf
=
conf
db
=
conf
.
getDatabase
(
'/'
)
db
=
conf
.
getDatabase
(
'/'
)
...
@@ -105,9 +104,6 @@ class MountingTests(unittest.TestCase):
...
@@ -105,9 +104,6 @@ class MountingTests(unittest.TestCase):
root
=
conn
.
root
()
root
=
conn
.
root
()
root
[
'Application'
]
=
app
=
Application
()
root
[
'Application'
]
=
app
=
Application
()
self
.
app
=
app
self
.
app
=
app
install_product
(
app
,
'ZCatalog'
)
install_product
(
app
,
'PluginIndexes'
)
install_product
(
app
,
'OFSP'
)
# login
# login
from
AccessControl.User
import
system
from
AccessControl.User
import
system
from
AccessControl.SecurityManagement
import
newSecurityManager
from
AccessControl.SecurityManagement
import
newSecurityManager
...
@@ -232,12 +228,5 @@ class MountingTests(unittest.TestCase):
...
@@ -232,12 +228,5 @@ class MountingTests(unittest.TestCase):
self
.
assertEqual
(
conn3
.
opened
,
None
)
self
.
assertEqual
(
conn3
.
opened
,
None
)
def
install_product
(
app
,
product_name
):
from
OFS.Application
import
install_product
product_dir
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
os
.
pardir
,
os
.
pardir
)
install_product
(
app
,
product_dir
,
product_name
,
[],
get_folder_permissions
(),
raise_exc
=
True
)
def
test_suite
():
def
test_suite
():
return
unittest
.
makeSuite
(
MountingTests
,
'test'
)
return
unittest
.
makeSuite
(
MountingTests
,
'test'
)
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