Skip to content

Commit

Permalink
Fixed BasicExtractorTests.test_makemessages_find_files() test.
Browse files Browse the repository at this point in the history
  • Loading branch information
claudep authored Jul 26, 2022
1 parent 2d23a07 commit 7bdb682
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/i18n/test_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,17 +508,19 @@ def test_makemessages_find_files(self):
cmd.ignore_patterns = ["CVS", ".*", "*~", "*.pyc"]
cmd.symlinks = False
cmd.domain = "django"
cmd.extensions = ["html", "txt", "py"]
cmd.extensions = [".html", ".txt", ".py"]
cmd.verbosity = 0
cmd.locale_paths = []
cmd.default_locale_path = os.path.join(self.test_dir, "locale")
found_files = cmd.find_files(self.test_dir)
self.assertGreater(len(found_files), 1)
found_exts = {os.path.splitext(tfile.file)[1] for tfile in found_files}
self.assertEqual(found_exts.difference({".py", ".html", ".txt"}), set())

cmd.extensions = ["js"]
cmd.extensions = [".js"]
cmd.domain = "djangojs"
found_files = cmd.find_files(self.test_dir)
self.assertGreater(len(found_files), 1)
found_exts = {os.path.splitext(tfile.file)[1] for tfile in found_files}
self.assertEqual(found_exts.difference({".js"}), set())

Expand Down

0 comments on commit 7bdb682

Please sign in to comment.