From: Jameson Graef Rollins Date: Mon, 27 May 2019 18:35:10 +0000 (+0000) Subject: test: new test framework to compare json parts X-Git-Tag: archive/debian/0.29_rc0-1~18 X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=03839a8110054c51b406a7ce96fa532a72476466;p=notmuch test: new test framework to compare json parts This makes it easier to write fairly compact, readable tests of json output, without needing to sanitize away parts that we don't care about. Signed-off-by: Daniel Kahn Gillmor --- diff --git a/test/json_check_nodes.py b/test/json_check_nodes.py new file mode 100755 index 00000000..17403c57 --- /dev/null +++ b/test/json_check_nodes.py @@ -0,0 +1,114 @@ +#!/usr/bin/env python +import re +import sys +import json + + +EXPR_RE = re.compile('(?P