mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-25 07:16:42 +00:00
add test for xaml file
This commit is contained in:
parent
bca565a73a
commit
e2ff49576f
@ -1,6 +1,7 @@
|
|||||||
|
import json
|
||||||
import os
|
import os
|
||||||
import unittest
|
import unittest
|
||||||
import json
|
|
||||||
from main import TodoParser
|
from main import TodoParser
|
||||||
|
|
||||||
|
|
||||||
@ -82,6 +83,9 @@ class NewIssueTests(unittest.TestCase):
|
|||||||
def test_nix_issues(self):
|
def test_nix_issues(self):
|
||||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'nix'), 2)
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'nix'), 2)
|
||||||
|
|
||||||
|
def test_xaml_issues(self):
|
||||||
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'xml'), 2)
|
||||||
|
|
||||||
class ClosedIssueTests(unittest.TestCase):
|
class ClosedIssueTests(unittest.TestCase):
|
||||||
# Check for removed TODOs across the files specified.
|
# Check for removed TODOs across the files specified.
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
@ -152,6 +156,8 @@ class ClosedIssueTests(unittest.TestCase):
|
|||||||
def test_nix_issues(self):
|
def test_nix_issues(self):
|
||||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'nix'), 2)
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'nix'), 2)
|
||||||
|
|
||||||
|
def test_xaml_issues(self):
|
||||||
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'xml'), 2)
|
||||||
|
|
||||||
class IgnorePatternTests(unittest.TestCase):
|
class IgnorePatternTests(unittest.TestCase):
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user