@@ -41,7 +41,7 @@ def test_should_report_for_an_empty_file():
4141
4242
4343@pytest .mark .parametrize (
44- ["file_path" , "needed_count" ], [(DOCUMENTED_FILE_PATH , 9 ), (FULLY_EXCUSED_FILE_PATH , 8 )]
44+ ["file_path" , "needed_count" ], [(DOCUMENTED_FILE_PATH , 11 ), (FULLY_EXCUSED_FILE_PATH , 10 )]
4545)
4646def test_should_report_full_coverage (file_path , needed_count ):
4747 result = analyze ([file_path ])
@@ -105,7 +105,7 @@ def test_should_report_for_multiple_files():
105105 "missing" : [],
106106 "module_doc" : True ,
107107 "missing_count" : 0 ,
108- "needed_count" : 9 ,
108+ "needed_count" : 11 ,
109109 "coverage" : 100.0 ,
110110 "empty" : False ,
111111 },
@@ -118,7 +118,7 @@ def test_should_report_for_multiple_files():
118118 "empty" : True ,
119119 },
120120 }
121- assert total_results == {"missing_count" : 4 , "needed_count" : 14 , "coverage" : 71.42857142857143 }
121+ assert total_results == {"missing_count" : 4 , "needed_count" : 16 , "coverage" : 75.0 }
122122
123123
124124def test_should_report_when_no_docs_in_a_file ():
@@ -255,14 +255,14 @@ def test_skip_private():
255255 result = analyze ([PRIVATE_NO_DOCS_PATH ], ignore_config = ignore_config )
256256 file_results , total_results = result .to_legacy ()
257257 assert file_results [PRIVATE_NO_DOCS_PATH ] == {
258- "missing" : ["__dunder" ],
258+ "missing" : ["__dunder" , "__adunder" ],
259259 "module_doc" : True ,
260- "missing_count" : 1 ,
261- "needed_count" : 2 ,
262- "coverage" : 50.0 ,
260+ "missing_count" : 2 ,
261+ "needed_count" : 3 ,
262+ "coverage" : 33.333333333333336 ,
263263 "empty" : False ,
264264 }
265- assert total_results == {"missing_count" : 1 , "needed_count" : 2 , "coverage" : 50.0 }
265+ assert total_results == {"missing_count" : 2 , "needed_count" : 3 , "coverage" : 33.333333333333336 }
266266
267267
268268def test_long_doc ():
0 commit comments