##// END OF EJS Templates
tests: add simplestorerepo to test-check-interfaces.py...
Augie Fackler -
r41194:23d5e03d default
parent child Browse files
Show More
@@ -40,8 +40,12 b' from mercurial import ('
40 wireprotov2server,
40 wireprotov2server,
41 )
41 )
42
42
43 rootdir = pycompat.fsencode(
43 testdir = os.path.dirname(__file__)
44 os.path.normpath(os.path.join(os.path.dirname(__file__), '..')))
44 rootdir = pycompat.fsencode(os.path.normpath(os.path.join(testdir, '..')))
45
46 sys.path[0:0] = [testdir]
47 import simplestorerepo
48 del sys.path[0]
45
49
46 def checkzobject(o, allowextra=False):
50 def checkzobject(o, allowextra=False):
47 """Verify an object with a zope interface."""
51 """Verify an object with a zope interface."""
@@ -177,6 +181,12 b' def main():'
177 ziverify.verifyClass(repository.imanifestlog, manifest.manifestlog)
181 ziverify.verifyClass(repository.imanifestlog, manifest.manifestlog)
178 ziverify.verifyClass(repository.imanifeststorage, manifest.manifestrevlog)
182 ziverify.verifyClass(repository.imanifeststorage, manifest.manifestrevlog)
179
183
184 ziverify.verifyClass(repository.irevisiondelta,
185 simplestorerepo.simplestorerevisiondelta)
186 ziverify.verifyClass(repository.ifilestorage, simplestorerepo.filestorage)
187 ziverify.verifyClass(repository.iverifyproblem,
188 simplestorerepo.simplefilestoreproblem)
189
180 vfs = vfsmod.vfs(b'.')
190 vfs = vfsmod.vfs(b'.')
181 fl = filelog.filelog(vfs, b'dummy.i')
191 fl = filelog.filelog(vfs, b'dummy.i')
182 checkzobject(fl, allowextra=True)
192 checkzobject(fl, allowextra=True)
General Comments 0
You need to be logged in to leave comments. Login now