summaryrefslogtreecommitdiff
path: root/tests/test_json.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2020-04-11 16:21:41 -0400
committerNed Batchelder <ned@nedbatchelder.com>2020-04-11 16:21:41 -0400
commitb79005b3b7225497f55dfce872d72f9323ddf08c (patch)
tree974592d49d7c105959cc4ec118788ff580c7e0a0 /tests/test_json.py
parentb1194fbc5ca33e41b1b8ab467e0c758d3080750b (diff)
downloadpython-coveragepy-git-b79005b3b7225497f55dfce872d72f9323ddf08c.tar.gz
New JSON info should be reported on individual files also.
Diffstat (limited to 'tests/test_json.py')
-rw-r--r--tests/test_json.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_json.py b/tests/test_json.py
index 92dee6d9..f7ce7934 100644
--- a/tests/test_json.py
+++ b/tests/test_json.py
@@ -54,7 +54,9 @@ class JsonReportTest(UsingModulesMixin, CoverageTest):
'num_branches': 2,
'excluded_lines': 0,
'num_partial_branches': 1,
- 'percent_covered': 60.0
+ 'covered_branches': 1,
+ 'missing_branches': 1,
+ 'percent_covered': 60.0,
}
}
},
@@ -67,7 +69,7 @@ class JsonReportTest(UsingModulesMixin, CoverageTest):
'num_partial_branches': 1,
'percent_covered': 60.0,
'covered_branches': 1,
- 'missing_branches': 1
+ 'missing_branches': 1,
}
}
self._assert_expected_json_report(cov, expected_result)