D5521: tests: add simplestorerepo to test-check-interfaces.py
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 ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
D5521: tests: add simplestorerepo to test-check-interfaces.py
durin42 created this revision. durin42 added a reviewer: indygreg. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY I'm not thrilled with this, but it'll help avoid future bitrot. REPOSITORY rHG Mercurial 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 ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel