@@ -59,7 +59,7 @@ def test_build_commit_payload(
5959 "sessions" : 1 ,
6060 "complexity" : 10 ,
6161 "complexity_total" : 2 ,
62- "diff" : 0 ,
62+ "diff" : None ,
6363 },
6464 "commitid" : head_commit .commitid ,
6565 "service_url" : f"https://github.com/{ repository .slug } /commit/{ head_commit .commitid } " ,
@@ -239,7 +239,7 @@ def test_build_payload(self, dbsession, mock_configuration, sample_comparison):
239239 "sessions" : 1 ,
240240 "complexity" : 10 ,
241241 "complexity_total" : 2 ,
242- "diff" : 0 ,
242+ "diff" : None ,
243243 },
244244 "commitid" : head_commit .commitid ,
245245 "service_url" : f"https://github.com/{ repository .slug } /commit/{ head_commit .commitid } " ,
@@ -269,7 +269,7 @@ def test_build_payload(self, dbsession, mock_configuration, sample_comparison):
269269 "sessions" : 1 ,
270270 "complexity" : 11 ,
271271 "complexity_total" : 20 ,
272- "diff" : 0 ,
272+ "diff" : None ,
273273 },
274274 "commitid" : base_commit .commitid ,
275275 "service_url" : f"https://github.com/{ repository .slug } /commit/{ base_commit .commitid } " ,
@@ -365,7 +365,7 @@ def test_build_payload_higher_precision(
365365 "sessions" : 1 ,
366366 "complexity" : 10 ,
367367 "complexity_total" : 2 ,
368- "diff" : 0 ,
368+ "diff" : None ,
369369 },
370370 "commitid" : head_commit .commitid ,
371371 "service_url" : f"https://github.com/{ repository .slug } /commit/{ head_commit .commitid } " ,
@@ -395,7 +395,7 @@ def test_build_payload_higher_precision(
395395 "sessions" : 1 ,
396396 "complexity" : 11 ,
397397 "complexity_total" : 20 ,
398- "diff" : 0 ,
398+ "diff" : None ,
399399 },
400400 "commitid" : base_commit .commitid ,
401401 "service_url" : f"https://github.com/{ repository .slug } /commit/{ base_commit .commitid } " ,
@@ -482,7 +482,7 @@ def test_build_payload_without_pull(
482482 "sessions" : 1 ,
483483 "complexity" : 10 ,
484484 "complexity_total" : 2 ,
485- "diff" : 0 ,
485+ "diff" : None ,
486486 },
487487 "commitid" : head_commit .commitid ,
488488 "service_url" : f"https://github.com/{ repository .slug } /commit/{ head_commit .commitid } " ,
@@ -512,7 +512,7 @@ def test_build_payload_without_pull(
512512 "sessions" : 1 ,
513513 "complexity" : 11 ,
514514 "complexity_total" : 20 ,
515- "diff" : 0 ,
515+ "diff" : None ,
516516 },
517517 "commitid" : base_commit .commitid ,
518518 "service_url" : f"https://github.com/{ repository .slug } /commit/{ base_commit .commitid } " ,
@@ -595,7 +595,7 @@ def test_build_payload_without_base_report(
595595 "sessions" : 1 ,
596596 "complexity" : 10 ,
597597 "complexity_total" : 2 ,
598- "diff" : 0 ,
598+ "diff" : None ,
599599 },
600600 "commitid" : head_commit .commitid ,
601601 "service_url" : f"https://github.com/{ repository .slug } /commit/{ head_commit .commitid } " ,
@@ -700,7 +700,7 @@ def test_build_payload_without_base(
700700 "sessions" : 1 ,
701701 "complexity" : 10 ,
702702 "complexity_total" : 2 ,
703- "diff" : 0 ,
703+ "diff" : None ,
704704 },
705705 "commitid" : head_commit .commitid ,
706706 "service_url" : f"https://github.com/{ repository .slug } /commit/{ head_commit .commitid } " ,
0 commit comments