diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-22 12:14:38 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-22 12:14:38 -0400 |
commit | a9340b38bf152ff49b38df6026624280419ee93f (patch) | |
tree | 6c6a472b25c7de8dc11a9a55a1d31e46a48f436f /tests/test_data.py | |
parent | 852c6a7398fb5934b22dbe078f7cb2914bc4e0cd (diff) | |
download | python-coveragepy-git-a9340b38bf152ff49b38df6026624280419ee93f.tar.gz |
Don't write a plugins key if there are no plugins.
Diffstat (limited to 'tests/test_data.py')
-rw-r--r-- | tests/test_data.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_data.py b/tests/test_data.py index ea33a587..ef058e51 100644 --- a/tests/test_data.py +++ b/tests/test_data.py @@ -498,6 +498,8 @@ class CoverageDataFilesTest(DataTestHelpers, CoverageTest): self.assertCountEqual(lines['b.py'], B_PY_LINES_1) # If not measuring branches, there's no arcs entry. self.assertNotIn('arcs', data) + # If no plugins were involved, there's no plugins entry. + self.assertNotIn('plugins', data) def test_file_format_with_arcs(self): # Write with CoverageData, then read the JSON explicitly. @@ -513,6 +515,8 @@ class CoverageDataFilesTest(DataTestHelpers, CoverageTest): self.assertCountEqual(arcs.keys(), MEASURED_FILES_3) self.assertCountEqual(arcs['x.py'], map(list, X_PY_ARCS_3)) self.assertCountEqual(arcs['y.py'], map(list, Y_PY_ARCS_3)) + # If no plugins were involved, there's no plugins entry. + self.assertNotIn('plugins', data) def test_writing_to_other_file(self): data_files = CoverageDataFiles(".otherfile") |