rearrange testing code
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@2594 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
66ea2a15bc
commit
7f0f3f3dad
9 changed files with 4 additions and 8 deletions
|
@ -13,7 +13,7 @@ Accessing Objects on a Remote BSCW Repository
|
|||
In fact we do not access a remote repository but just a dummy (fake)
|
||||
repository for testing purposes.
|
||||
|
||||
>>> from cybertools.integrator.testing.bscw import BSCWServer, sampleObjects
|
||||
>>> from cybertools.integrator.tests.bscw import BSCWServer, sampleObjects
|
||||
>>> from cybertools.integrator.bscw import standardAttributes
|
||||
>>> server = BSCWServer(sampleObjects)
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Let's do some basic set up
|
|||
|
||||
>>> from zope import component
|
||||
|
||||
>>> from cybertools.integrator.tests.test_all import testDir
|
||||
>>> from cybertools.integrator.tests.test_filesystem import testDir
|
||||
>>> from cybertools.integrator.filesystem import ContainerFactory, FileFactory
|
||||
>>> from cybertools.integrator.interfaces import IContainerFactory
|
||||
>>> component.provideUtility(ContainerFactory(), name='filesystem')
|
|
@ -1,3 +0,0 @@
|
|||
"""
|
||||
$Id$
|
||||
"""
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
@ -7,7 +7,7 @@ from zope.interface.verify import verifyClass
|
|||
|
||||
|
||||
baseDir = os.path.dirname(os.path.dirname(__file__))
|
||||
testDir = os.path.join(baseDir, 'testing', 'data')
|
||||
testDir = os.path.join(baseDir, 'tests', 'data')
|
||||
|
||||
flags = doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS
|
||||
|
||||
|
@ -22,8 +22,7 @@ class Test(unittest.TestCase):
|
|||
def test_suite():
|
||||
return unittest.TestSuite((
|
||||
unittest.makeSuite(Test),
|
||||
DocFileSuite('../README.txt', optionflags=flags),
|
||||
DocFileSuite('../bscw.txt', optionflags=flags),
|
||||
DocFileSuite('../filesystem.txt', optionflags=flags),
|
||||
))
|
||||
|
||||
if __name__ == '__main__':
|
Loading…
Add table
Reference in a new issue