diff --git a/analyzer/tests/functional/analyze_and_parse/test_analyze_and_parse.py b/analyzer/tests/functional/analyze_and_parse/test_analyze_and_parse.py index 5c30b8743f..0e9b480a52 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_analyze_and_parse.py +++ b/analyzer/tests/functional/analyze_and_parse/test_analyze_and_parse.py @@ -360,7 +360,7 @@ def test_gerrit_output(self): self.assertEqual(lbls["Code-Review"], -1) self.assertEqual(review_data["message"], "CodeChecker found 1 issue(s) in the code. " - "See: '{0}'".format(report_url)) + "See: {0}".format(report_url)) self.assertEqual(review_data["tag"], "jenkins") # Because the CC_CHANGED_FILES is set we will see reports only for diff --git a/tools/report-converter/codechecker_report_converter/report/output/gerrit.py b/tools/report-converter/codechecker_report_converter/report/output/gerrit.py index 18dc9d49a3..470cdb8446 100644 --- a/tools/report-converter/codechecker_report_converter/report/output/gerrit.py +++ b/tools/report-converter/codechecker_report_converter/report/output/gerrit.py @@ -121,7 +121,7 @@ def __convert_reports(reports: List[Report], report_messages_in_unchanged_files))) if report_url: - message += " See: '{0}'".format(report_url) + message += f" See: {report_url}" review = {"tag": "jenkins", "message": message, diff --git a/tools/report-converter/tests/unit/output/gerrit/test_gerrit_converter.py b/tools/report-converter/tests/unit/output/gerrit/test_gerrit_converter.py index a7a81961e9..b02593ad5e 100644 --- a/tools/report-converter/tests/unit/output/gerrit/test_gerrit_converter.py +++ b/tools/report-converter/tests/unit/output/gerrit/test_gerrit_converter.py @@ -110,7 +110,7 @@ def test_report_to_gerrit_conversion_report_url(self): expected = { "tag": "jenkins", "message": "CodeChecker found 1 issue(s) in the code. " - "See: 'localhost:8080/index.html'", + "See: localhost:8080/index.html", "labels": {"Code-Review": -1, "Verified": -1}, "comments": { "main.cpp": [ diff --git a/web/tests/functional/diff_local_remote/test_diff_local_remote.py b/web/tests/functional/diff_local_remote/test_diff_local_remote.py index 6267607a17..e1a39d27e1 100644 --- a/web/tests/functional/diff_local_remote/test_diff_local_remote.py +++ b/web/tests/functional/diff_local_remote/test_diff_local_remote.py @@ -433,7 +433,7 @@ def test_set_env_diff_gerrit_output(self): self.assertIn( "CodeChecker found 25 issue(s) in the code.", review_data["message"]) - self.assertIn(f"See: '{report_url}'", review_data["message"]) + self.assertIn(f"See: {report_url}", review_data["message"]) self.assertEqual(review_data["tag"], "jenkins") # Because the CC_CHANGED_FILES is set we will see reports only for