[Zope3-checkins] CVS: Zope3/src/zope/app/fssync/tests - test_committer.py:1.9

Guido van Rossum guido@python.org
Mon, 2 Jun 2003 15:48:49 -0400


Update of /cvs-repository/Zope3/src/zope/app/fssync/tests
In directory cvs.zope.org:/tmp/cvs-serv28592/tests

Modified Files:
	test_committer.py 
Log Message:
- Adapt containers to IZopeContainer so that the appropriate hooks are
  called.

- Post ObjectModifiedEvent and ObjectCreatedEvent when appropriate.

- Because this changes the ZopeDublinCore annotations and that causes
  the up-to-date check to fail, ignore up-to-date conflicts for
  annotations.  This adds an ugly 'ignore_conflicts' flag passed
  everywhere.  (See XXX comment for a better solution.)

- Adapt the tests so they don't fail.  There are no tests for the
  added features though.



=== Zope3/src/zope/app/fssync/tests/test_committer.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/fssync/tests/test_committer.py:1.8	Thu May 29 14:04:26 2003
+++ Zope3/src/zope/app/fssync/tests/test_committer.py	Mon Jun  2 15:48:49 2003
@@ -22,7 +22,7 @@
 
 from zope.component.service import serviceManager
 from zope.component.adapter import provideAdapter
-from zope.component.tests.placelesssetup import PlacelessSetup
+from zope.app.tests.placelesssetup import PlacelessSetup
 from zope.exceptions import NotFoundError
 from zope.testing.cleanup import CleanUp
 
@@ -31,7 +31,7 @@
 from zope.fssync.tests.mockmetadata import MockMetadata
 from zope.fssync.tests.tempfiles import TempFiles
 
-from zope.app.interfaces.container import IContainer
+from zope.app.interfaces.container import IContainer, IZopeContainer
 from zope.app.interfaces.file import IFileFactory, IDirectoryFactory
 from zope.app.interfaces.fssync import IGlobalFSSyncService
 from zope.app.interfaces.traversing import ITraversable
@@ -47,7 +47,7 @@
 
 class PretendContainer(object):
     
-    __implements__ = IContainer, ITraversable
+    __implements__ = IContainer, ITraversable, IZopeContainer
 
     def __init__(self):
         self.holding = {}