12
12
class AnnotationGoldTest (CoverageTest ):
13
13
"""Test the annotate feature with gold files."""
14
14
15
- def make_multi (self ):
15
+ def make_multi (self ) -> None :
16
16
"""Make a few source files we need for the tests."""
17
17
self .make_file ("multi.py" , """\
18
18
import a.a
@@ -36,23 +36,23 @@ def b(x):
36
36
print(msg)
37
37
""" )
38
38
39
- def test_multi (self ):
39
+ def test_multi (self ) -> None :
40
40
self .make_multi ()
41
41
cov = coverage .Coverage ()
42
42
self .start_import_stop (cov , "multi" )
43
43
cov .annotate ()
44
44
45
45
compare (gold_path ("annotate/multi" ), "." , "*,cover" )
46
46
47
- def test_annotate_dir (self ):
47
+ def test_annotate_dir (self ) -> None :
48
48
self .make_multi ()
49
49
cov = coverage .Coverage (source = ["." ])
50
50
self .start_import_stop (cov , "multi" )
51
51
cov .annotate (directory = "out_anno_dir" )
52
52
53
53
compare (gold_path ("annotate/anno_dir" ), "out_anno_dir" , "*,cover" )
54
54
55
- def test_encoding (self ):
55
+ def test_encoding (self ) -> None :
56
56
self .make_file ("utf8.py" , """\
57
57
# -*- coding: utf-8 -*-
58
58
# This comment has an accent: é
@@ -64,7 +64,7 @@ def test_encoding(self):
64
64
cov .annotate ()
65
65
compare (gold_path ("annotate/encodings" ), "." , "*,cover" )
66
66
67
- def test_white (self ):
67
+ def test_white (self ) -> None :
68
68
self .make_file ("white.py" , """\
69
69
# A test case sent to me by Steve White
70
70
@@ -106,7 +106,7 @@ def h(x):
106
106
cov .annotate ()
107
107
compare (gold_path ("annotate/white" ), "." , "*,cover" )
108
108
109
- def test_missing_after_else (self ):
109
+ def test_missing_after_else (self ) -> None :
110
110
self .make_file ("mae.py" , """\
111
111
def f(x):
112
112
if x == 1:
0 commit comments