Patchwork [3,of,3] test-manifest: add some test coverage for treemanifest

login
register
mail settings
Submitter Drew Gottlieb
Date April 8, 2015, 12:17 a.m.
Message ID <e5edee8fd2013a47cc76.1428452276@waste.org>
Download mbox | patch
Permalink /patch/8557/
State Accepted
Headers show

Comments

Drew Gottlieb - April 8, 2015, 12:17 a.m.
# HG changeset patch
# User Drew Gottlieb <drgott@google.com>
# Date 1428444979 25200
#      Tue Apr 07 15:16:19 2015 -0700
# Node ID e5edee8fd2013a47cc76b4112dc8d4535cf91605
# Parent  d883ac09e0c528a731be28cc760e894edf85528d
test-manifest: add some test coverage for treemanifest

Similar to the testmanifest test case, testtreemanifest extends the base test
case but uses treemanifests instead of manifestdicts. Adding this test provides
some basic test coverage of treemanifest within the standard test suite.
Matt Mackall - April 8, 2015, 6:55 p.m.
On Tue, 2015-04-07 at 19:17 -0500, Drew Gottlieb wrote:
> # HG changeset patch
> # User Drew Gottlieb <drgott@google.com>
> # Date 1428444979 25200
> #      Tue Apr 07 15:16:19 2015 -0700
> # Node ID e5edee8fd2013a47cc76b4112dc8d4535cf91605
> # Parent  d883ac09e0c528a731be28cc760e894edf85528d
> test-manifest: add some test coverage for treemanifest

These are queued for default, thanks.

Patch

diff --git a/tests/test-manifest.py b/tests/test-manifest.py
--- a/tests/test-manifest.py
+++ b/tests/test-manifest.py
@@ -460,5 +460,9 @@ 
     def parsemanifest(self, text):
         return manifestmod.manifestdict(text)
 
+class testtreemanifest(unittest.TestCase, basemanifesttests):
+    def parsemanifest(self, text):
+        return manifestmod.treemanifest('', text)
+
 if __name__ == '__main__':
     silenttestrunner.main(__name__)