From a8e434e4fec5fe8632bd79cbb8b7fd918523948f Mon Sep 17 00:00:00 2001 From: Chaps Date: Thu, 17 Oct 2019 20:55:49 -0500 Subject: [PATCH] Adds test_no_errors unittest (#52) --- tests/test_linter.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/test_linter.py b/tests/test_linter.py index 93ea3c2f..72d53d35 100644 --- a/tests/test_linter.py +++ b/tests/test_linter.py @@ -22,6 +22,22 @@ def test_process_error(self): self.assertEqual(process_error(None), None) self.assertEqual(process_error(""), None) + + def test_no_errors(self): + """ Asserts format_errors function returns None when + + + """ + test_error = "\r\n--------------------------------------------------------------------\r\n"\ + "Your code has been rated at 10.00/10 (previous run: 9.33/10, +0.67)" + + self.assertEqual( + format_errors(test_error), + None + ) + + + if __name__ == '__main__': # print(process_error("s")) unittest.main()