File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 3030 pip install pytest-cov django
3131 pytest --cov=./ --cov-report=xml
3232
33- - name : Report test coverage to DeepSource
34- run : |
35- curl https://deepsource.io/cli | sh
36- ./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml
37- ./bin/deepsource report --analyzer test-coverage --key javascript --value-file ./coverage.xml
33+ # - name: Report test coverage to DeepSource
34+ # run: |
35+ # curl https://deepsource.io/cli | sh
36+ # ./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml
37+ # ./bin/deepsource report --analyzer test-coverage --key javascript --value-file ./coverage.xml
Original file line number Diff line number Diff line change 1+ import hashlib
2+
13FIRST = [1 , 2 , 3 ]
24SECOND = [1 , 2 , 3 ]
35p = [1 , 2 , 3 ]
@@ -22,10 +24,19 @@ def tested_foo():
2224 return 5
2325
2426
25- def untested_foo ():
27+ def print_new_lines ():
2628 print ("New line 4" )
2729 print ("New line 5" )
2830 print ("New line 6" )
2931 print ("New line 8" )
3032 print ("New line 9" )
3133 print ("New line 10" )
34+
35+ def compute_file_hashes (files = [], hash_algorithm = hashlib .md5 ) -> dict :
36+ hashes = dict ()
37+ for file in files :
38+ f = open (file )
39+ hashed = hash_algorithm (f .read ())
40+ hashes [file ] = hashed
41+
42+ return hashes
You can’t perform that action at this time.
0 commit comments