This repository was archived by the owner on Feb 19, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1313setup (
1414 name = 'codacy-coverage' ,
1515
16- version = '1.0.1 ' ,
16+ version = '1.1.0 ' ,
1717
1818 description = 'Codacy coverage reporter for Python' ,
1919 long_description = long_description ,
Original file line number Diff line number Diff line change 22import codacy .reporter
33import json
44
5+
56class ReporterTests (unittest .TestCase ):
67
7- def test_parser (self ):
8- def file_get_contents (filename ):
9- with open (filename ) as f :
10- return f .read ()
8+ def test_parser (self ):
9+ def file_get_contents (filename ):
10+ with open (filename ) as f :
11+ return f .read ()
1112
12- jsonContent = file_get_contents ('tests/coverage.json' )
13- expected = json .loads (jsonContent )
13+ jsonContent = file_get_contents ('tests/coverage.json' )
14+ expected = json .loads (jsonContent )
1415
15- generated = codacy .reporter .parse_report_file ('tests/cobertura.xml' )
16- self .assertEqual (generated , expected )
16+ generated = codacy .reporter .parse_report_file ('tests/cobertura.xml' )
17+ self .assertEqual (generated , expected )
1718
1819if __name__ == '__main__' :
1920 unittest .main ()
You can’t perform that action at this time.
0 commit comments