def test_ruby_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'ruby'), 3)
def test_abap_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'abap'), 2)
def test_sql_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'sql'), 1)
# TODO: Update tests
# Need tests for Julia, AutoHotKey, Handlebars, Org and TeX, as these markers are not currently covered.
class ClosedIssueTests(unittest.TestCase):
# Check for removed TODOs across the files specified.
def setUp(self):
diff_file = open('tests/test_closed.diff', 'r')
self.raw_issues = TodoParser().parse(diff_file)
Update tests
Need tests for Julia, AutoHotKey, Handlebars, Org and TeX, as these markers are not currently covered.
https://github.com/alstr/todo-to-issue-action/blob/d8373a95ac7d2a139f74b2789761504809567338/tests/test_todo_parser.py#L41
ac8851203a9aec450fc864b9d20c569ff1e908a5