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

login
register
mail settings
Submitter phabricator
Date Jan. 9, 2019, 11:08 p.m.
Message ID <901ea87919dfc0c0d0a6bec6fb6225c1@localhost.localdomain>
Download mbox | patch
Permalink /patch/37596/
State Not Applicable
Headers show

Comments

phabricator - Jan. 9, 2019, 11:08 p.m.
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




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

Patch

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)