From: Bohdan Malomuzh Date: Thu, 11 Jul 2024 06:30:06 +0000 (+0300) Subject: Improve test for ignore_dirs (#1052) X-Git-Tag: v2.16.0~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1834204ea6c2e975ab46a9183c2199ea5b366ab8;p=thirdparty%2Fbabel.git Improve test for ignore_dirs (#1052) Adds multiple value for proper test. Follows up on #832 --- diff --git a/tests/messages/test_frontend.py b/tests/messages/test_frontend.py index 448dd735..45638b3b 100644 --- a/tests/messages/test_frontend.py +++ b/tests/messages/test_frontend.py @@ -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 '_*'"