@@ -14,34 +14,39 @@ def test_check():
1414 insights = temp .getInsights ()
1515 share_scores = temp .getShareScores ()
1616
17- assert share_scores == {'testfiles/test_python.py' : 2 ,
18- 'testfiles/test_python2.py' : 2 ,
19- 'testfiles/test_python3.py' : 2 }
17+ assert share_scores == {
18+ "testfiles/test_python.py" : 2 ,
19+ "testfiles/test_python2.py" : 2 ,
20+ "testfiles/test_python3.py" : 2 ,
21+ }
2022
21- assert insights == {
22- 'DCtoC Paths' : [],
23- 'DtoC Paths' : [],
24- 'DtoDC Paths' : []}
23+ assert insights == {"DCtoC Paths" : [], "DtoC Paths" : [], "DtoDC Paths" : []}
2524
2625 assert results == [
27- {'file1' : 'testfiles/test_python2.py' ,
28- 'file2' : 'testfiles/test_python3.py' ,
29- 'lines_matched' : [['1-3' , '1-3' ]],
30- 'no_of_lines_matched' : 3 ,
31- 'percentage_file1' : 90 ,
32- 'percentage_file2' : 90 },
33- {'file1' : 'testfiles/test_python.py' ,
34- 'file2' : 'testfiles/test_python3.py' ,
35- 'lines_matched' : [['1-3' , '1-3' ]],
36- 'no_of_lines_matched' : 3 ,
37- 'percentage_file1' : 90 ,
38- 'percentage_file2' : 90 },
39- {'file1' : 'testfiles/test_python.py' ,
40- 'file2' : 'testfiles/test_python2.py' ,
41- 'lines_matched' : [['1-3' , '1-3' ]],
42- 'no_of_lines_matched' : 3 ,
43- 'percentage_file1' : 90 ,
44- 'percentage_file2' : 90 }
26+ {
27+ "file1" : "testfiles/test_python2.py" ,
28+ "file2" : "testfiles/test_python3.py" ,
29+ "lines_matched" : [["1-3" , "1-3" ]],
30+ "no_of_lines_matched" : 3 ,
31+ "percentage_file1" : 90 ,
32+ "percentage_file2" : 90 ,
33+ },
34+ {
35+ "file1" : "testfiles/test_python.py" ,
36+ "file2" : "testfiles/test_python3.py" ,
37+ "lines_matched" : [["1-3" , "1-3" ]],
38+ "no_of_lines_matched" : 3 ,
39+ "percentage_file1" : 90 ,
40+ "percentage_file2" : 90 ,
41+ },
42+ {
43+ "file1" : "testfiles/test_python.py" ,
44+ "file2" : "testfiles/test_python2.py" ,
45+ "lines_matched" : [["1-3" , "1-3" ]],
46+ "no_of_lines_matched" : 3 ,
47+ "percentage_file1" : 90 ,
48+ "percentage_file2" : 90 ,
49+ },
4550 ]
4651
4752
@@ -56,14 +61,15 @@ def test_perc_str_to_int():
5661
5762
5863def test_Mgroups ():
64+ """Test Mgroups()"""
5965 mg = analyze .Mgroups ()
60- mg .createNodes ({'1' , '2' , '3' })
66+ mg .createNodes ({"1" , "2" , "3" })
6167
62- mg .relatesTo (45 , 88 , '3' , '1' )
63- mg .relatesTo (46 , 90 , '3' , '2' )
68+ mg .relatesTo (45 , 88 , "3" , "1" )
69+ mg .relatesTo (46 , 90 , "3" , "2" )
6470
6571 mg .set_tags ()
6672
6773 assert mg .d2dc () == []
68- assert mg .d2c () == [('3' , '1' ), ('3' , '2' )]
74+ assert mg .d2c () == [("3" , "1" ), ("3" , "2" )]
6975 assert mg .dc2c () == []
0 commit comments