Add Twig tests

This commit is contained in:
alstr
2022-02-16 14:40:38 +00:00
parent 85822093ba
commit a6e0ba71bf
4 changed files with 21 additions and 3 deletions

View File

@@ -200,3 +200,14 @@ index 525e25d..ba4e68d 100644
- text-align: center;
- }
-}
diff --git a/tests/example_file.twig b/src/tests/example_file.twig
index 525e25d..ba4e68d 100644
--- a/src/tests/example_file.twig
+++ b/src/tests/example_file.twig
@@ -1,6 +0,0 @@
- {# TODO: Hopefully this comment turns into a todo issue #}
- {#
- TODO:Multiline comments
- also need to be turned into todos, and hopefully
- kept together as one todo
- #}

View File

@@ -212,8 +212,8 @@ diff --git a/tests/example_file.twig b/src/tests/example_file.twig
new file mode 100644
index 0000000..7cccc5b
--- /dev/null
+++ b/src/tests/example_file.scss
@@ -0,0 +1,11 @@
+++ b/src/tests/example_file.twig
@@ -0,0 +1,6 @@
+ {# TODO: Hopefully this comment turns into a todo issue #}
+ {#
+ TODO:Multiline comments

View File

@@ -60,6 +60,9 @@ class NewIssueTests(unittest.TestCase):
def test_scss_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'scss'), 2)
def test_twig_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'twig'), 2)
class ClosedIssueTests(unittest.TestCase):
# Check for removed TODOs across the files specified.
@@ -109,6 +112,9 @@ class ClosedIssueTests(unittest.TestCase):
def test_scss_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'scss'), 2)
def test_twig_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'twig'), 2)
class IgnorePatternTests(unittest.TestCase):