From 27917e59e09c668f36d69ccf5afbc010ed8ee314 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Fri, 18 Sep 2015 16:06:20 -0400 Subject: [PATCH] Enforce properly indentation for json fixtures Change-Id: I21415f27332decea555c3534a96e02ba1ea0c591 Signed-off-by: Paul Belanger --- tests/base.py | 3 +-- tests/schema/fixtures/dashboard-0004.json | 18 +++++++++--------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/tests/base.py b/tests/base.py index 0601cfc..f3aad75 100644 --- a/tests/base.py +++ b/tests/base.py @@ -77,5 +77,4 @@ class TestCase(object): valid_yaml, indent=4, separators=(',', ': '), sort_keys=True) self.assertThat(pretty_json, testtools.matchers.DocTestMatches( - expected_json, doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE | - doctest.REPORT_NDIFF)) + expected_json, doctest.ELLIPSIS | doctest.REPORT_NDIFF)) diff --git a/tests/schema/fixtures/dashboard-0004.json b/tests/schema/fixtures/dashboard-0004.json index 14528e3..61a9afb 100644 --- a/tests/schema/fixtures/dashboard-0004.json +++ b/tests/schema/fixtures/dashboard-0004.json @@ -6,15 +6,15 @@ "editable": true, "height": "250px", "panels": [ - { - "content": "Some example text is required.", - "editable": true, - "error": false, - "mode": "markdown", - "span": 12, - "title": "no title (click here)", - "type": "text" - } + { + "content": "Some example text is required.", + "editable": true, + "error": false, + "mode": "markdown", + "span": 12, + "title": "no title (click here)", + "type": "text" + } ], "showTitle": false, "title": "New row"