]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Improve test for ignore_dirs (#1052)
authorBohdan Malomuzh <igreenbergi78@gmail.com>
Thu, 11 Jul 2024 06:30:06 +0000 (09:30 +0300)
committerGitHub <noreply@github.com>
Thu, 11 Jul 2024 06:30:06 +0000 (09:30 +0300)
Adds multiple value for proper test.

Follows up on #832

tests/messages/test_frontend.py

index 448dd7357d7e1a65ea47c15220734130f70553cf..45638b3b179eedefac36eb096993a7eba7ddf58a 100644 (file)
@@ -1574,7 +1574,7 @@ def test_extract_error_code(monkeypatch, capsys):
 def test_extract_ignore_dirs(monkeypatch, capsys, tmp_path, with_underscore_ignore):
     pot_file = tmp_path / 'temp.pot'
     monkeypatch.chdir(project_dir)
-    cmd = f"extract . -o '{pot_file}' --ignore-dirs '*ignored*' "
+    cmd = f"extract . -o '{pot_file}' --ignore-dirs '*ignored* .*' "
     if with_underscore_ignore:
         # This also tests that multiple arguments are supported.
         cmd += "--ignore-dirs '_*'"