D5521: tests: add simplestorerepo to test-check-interfaces.py

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Wed Jan 9 18:08:45 EST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG23d5e03dad70: tests: add simplestorerepo to test-check-interfaces.py (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5521?vs=13068&id=13115

REVISION DETAIL
  https://phab.mercurial-scm.org/D5521

AFFECTED FILES
  tests/test-check-interfaces.py

CHANGE DETAILS

diff --git a/tests/test-check-interfaces.py b/tests/test-check-interfaces.py
--- a/tests/test-check-interfaces.py
+++ b/tests/test-check-interfaces.py
@@ -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)



To: durin42, indygreg, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list