We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd43e35 commit 42344f3Copy full SHA for 42344f3
tests/test_config.py
@@ -342,9 +342,22 @@ def test_tweaks_after_constructor(self):
342
self.assertEqual(cov.get_option("run:data_file"), "fooey.dat")
343
344
def test_tweaks_paths_after_constructor(self):
345
+ self.make_file(".coveragerc", """\
346
+ [paths]
347
+ first =
348
+ /first/1
349
+ /first/2
350
+
351
+ second =
352
+ /second/a
353
+ /second/b
354
+ """)
355
+ old_paths = OrderedDict()
356
+ old_paths["first"] = ["/first/1", "/first/2"]
357
+ old_paths["second"] = ["/second/a", "/second/b"]
358
cov = coverage.Coverage()
359
paths = cov.get_option("paths")
- self.assertEqual(paths, OrderedDict())
360
+ self.assertEqual(paths, old_paths)
361
362
new_paths = OrderedDict()
363
new_paths['magic'] = ['src', 'ok']
0 commit comments