alstr / todo-to-issue-action

Action that converts TODO comments to GitHub issues on push.
MIT License
605 stars 115 forks source link

Update tests #88

Closed github-actions[bot] closed 2 years ago

github-actions[bot] commented 2 years ago

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


    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)

ac8851203a9aec450fc864b9d20c569ff1e908a5

github-actions[bot] commented 2 years ago

Closed in fa33680f84f49ec0ed35ee601a8f064d9f0b677a