tests: add simplestorerepo to test-check-interfaces.py
I'm not thrilled with this, but it'll help avoid future bitrot.
Differential Revision: https://phab.mercurial-scm.org/D5521
--- a/tests/test-check-interfaces.py Mon Jan 07 16:50:23 2019 -0500
+++ b/tests/test-check-interfaces.py Mon Jan 07 17:19:19 2019 -0500
@@ -40,8 +40,12 @@
wireprotov2server,
)
-rootdir = pycompat.fsencode(
- os.path.normpath(os.path.join(os.path.dirname(__file__), '..')))
+testdir = os.path.dirname(__file__)
+rootdir = pycompat.fsencode(os.path.normpath(os.path.join(testdir, '..')))
+
+sys.path[0:0] = [testdir]
+import simplestorerepo
+del sys.path[0]
def checkzobject(o, allowextra=False):
"""Verify an object with a zope interface."""
@@ -177,6 +181,12 @@
ziverify.verifyClass(repository.imanifestlog, manifest.manifestlog)
ziverify.verifyClass(repository.imanifeststorage, manifest.manifestrevlog)
+ ziverify.verifyClass(repository.irevisiondelta,
+ simplestorerepo.simplestorerevisiondelta)
+ ziverify.verifyClass(repository.ifilestorage, simplestorerepo.filestorage)
+ ziverify.verifyClass(repository.iverifyproblem,
+ simplestorerepo.simplefilestoreproblem)
+
vfs = vfsmod.vfs(b'.')
fl = filelog.filelog(vfs, b'dummy.i')
checkzobject(fl, allowextra=True)