diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-12-27 17:05:06 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-12-27 17:11:07 -0500 |
commit | 212f652076bb5f5c464db49576d927bc30ef0e1e (patch) | |
tree | f3a525ae225724e9bdb55d4b276387552bd24003 /tests/test_config.py | |
parent | cceadff1d3d33c046042b606d40e01f41e23ec5d (diff) | |
download | python-coveragepy-git-212f652076bb5f5c464db49576d927bc30ef0e1e.tar.gz |
test: run mypy on config.py
Diffstat (limited to 'tests/test_config.py')
-rw-r--r-- | tests/test_config.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/test_config.py b/tests/test_config.py index 5f8a0547..ccc4305f 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -4,7 +4,6 @@ """Test the config file handling for coverage.py""" import sys -from collections import OrderedDict from unittest import mock import pytest @@ -357,15 +356,17 @@ class ConfigTest(CoverageTest): /second/a /second/b """) - old_paths = OrderedDict() - old_paths["first"] = ["/first/1", "/first/2"] - old_paths["second"] = ["/second/a", "/second/b"] + old_paths = { + "first": ["/first/1", "/first/2"], + "second": ["/second/a", "/second/b"], + } cov = coverage.Coverage() paths = cov.get_option("paths") assert paths == old_paths - new_paths = OrderedDict() - new_paths['magic'] = ['src', 'ok'] + new_paths = { + "magic": ["src", "ok"], + } cov.set_option("paths", new_paths) assert cov.get_option("paths") == new_paths |