summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2022-07-26 07:23:45 +0200
committerGitHub <noreply@github.com>2022-07-26 07:23:45 +0200
commit7bdb682215de3bf7f8f38f8161b175c225ee25fa (patch)
treeca051fa3391a3493566ad05ef3125d463be4d5fc
parent2d23a07817b67825735a6900ebed505a004f7788 (diff)
Fixed BasicExtractorTests.test_makemessages_find_files() test.
-rw-r--r--tests/i18n/test_extraction.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/i18n/test_extraction.py b/tests/i18n/test_extraction.py
index 5287677bab..a611eb97a1 100644
--- a/tests/i18n/test_extraction.py
+++ b/tests/i18n/test_extraction.py
@@ -508,17 +508,19 @@ class BasicExtractorTests(ExtractorTests):
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())