Mercurial > hg-stable
changeset 41159:23d5e03dad70
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
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 07 Jan 2019 17:19:19 -0500 |
parents | ad51e6117095 |
children | a9905045b992 |
files | tests/test-check-interfaces.py |
diffstat | 1 files changed, 12 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)