Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Bijlsma committed Sep 4, 2024
1 parent 6f61341 commit fc7a466
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/test_pipeline_summary_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ def testDisplayLandingPageFromClient(self):
expected = """
** ⚠️ Your code did not improve towards your Sigrid objective of 3.5 stars **
-------------------------------------------------------------------------
View your analysis results in Sigrid:
https://example-sigrid.com/aap/noot/-/sigrid-ci/1234?targetRating=3.5
-------------------------------------------------------------------------
---------------------------------------
View this system in Sigrid:
https://example-sigrid.com/aap/noot
---------------------------------------
"""

self.assertEqual(buffer.getvalue().strip(), inspect.cleandoc(expected).strip())
Expand Down Expand Up @@ -78,10 +78,10 @@ def testSpecialTextIfNoCodeChanged(self):
expected = """
** 💭️ You did not change any files that are measured by Sigrid **
-------------------------------------------------------------------------
View your analysis results in Sigrid:
https://example-sigrid.com/aap/noot/-/sigrid-ci/1234?targetRating=3.5
-------------------------------------------------------------------------
---------------------------------------
View this system in Sigrid:
https://example-sigrid.com/aap/noot
---------------------------------------
"""

self.assertEqual(buffer.getvalue().strip(), inspect.cleandoc(expected).strip())

0 comments on commit fc7a466

Please sign in to comment.