Skip to content

Commit

Permalink
Adds test_no_errors unittest (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaps authored and ethanchewy committed Oct 18, 2019
1 parent c41b744 commit a8e434e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/test_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit a8e434e

Please sign in to comment.