From e2ff49576f0bb721860493edb1e6cbd7d13ea889 Mon Sep 17 00:00:00 2001 From: DosangGu Date: Thu, 9 Feb 2023 08:13:26 +0000 Subject: [PATCH] add test for xaml file --- tests/test_todo_parser.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/test_todo_parser.py b/tests/test_todo_parser.py index ff04620..b811be2 100644 --- a/tests/test_todo_parser.py +++ b/tests/test_todo_parser.py @@ -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): @@ -151,7 +155,9 @@ 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):