mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-22 22:06:43 +00:00
commit
dd82ee62c5
12
syntax.json
12
syntax.json
@ -683,5 +683,17 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"language": "XML",
|
||||
"markers": [
|
||||
{
|
||||
"type": "block",
|
||||
"pattern": {
|
||||
"start": "<!--",
|
||||
"end": "-->"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@ -323,3 +323,15 @@ index a6c6cb0..25d195f 100644
|
||||
- */
|
||||
sum = a: b: a + b;
|
||||
}
|
||||
diff --git a/tests/example.xaml b/tests/example.xaml
|
||||
new file mode 100644
|
||||
index 0000000..a6c6cb0
|
||||
--- /dev/null
|
||||
+++ b/tests/example.xaml
|
||||
@@ -1,4 +1,2 @@
|
||||
-<!-- TODO: Add xaml support -->
|
||||
-<Label Text="why"/>
|
||||
-<!-- TODO: please -->
|
||||
-<Label Text="ok"/>
|
||||
<Label Text="There you go"/>
|
||||
<Label Text="Thank you"/>
|
||||
|
||||
@ -348,3 +348,13 @@ index 0000000..a6c6cb0
|
||||
+ */
|
||||
+ sum = a: b: a + b;
|
||||
+}
|
||||
diff --git a/tests/example.xaml b/tests/example.xaml
|
||||
new file mode 100644
|
||||
index 0000000..a6c6cb0
|
||||
--- /dev/null
|
||||
+++ b/tests/example.xaml
|
||||
@@ -0,0 +1,4 @@
|
||||
+<!-- TODO: Add xaml support -->
|
||||
+<Label Text="why"/>
|
||||
+<!-- TODO: please -->
|
||||
+<Label Text="ok"/>
|
||||
@ -1,6 +1,7 @@
|
||||
import json
|
||||
import os
|
||||
import unittest
|
||||
import json
|
||||
|
||||
from main import TodoParser
|
||||
|
||||
|
||||
@ -82,6 +83,9 @@ class NewIssueTests(unittest.TestCase):
|
||||
def test_nix_issues(self):
|
||||
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):
|
||||
# Check for removed TODOs across the files specified.
|
||||
def setUp(self):
|
||||
@ -152,6 +156,8 @@ class ClosedIssueTests(unittest.TestCase):
|
||||
def test_nix_issues(self):
|
||||
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):
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user