Skip to content

Commit 6630139

Browse files
committed
Add test for --header-comment
1 parent d1d655b commit 6630139

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/messages/test_frontend.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,3 +1518,12 @@ def test_extract_ignore_dirs(monkeypatch, capsys, tmp_path, with_underscore_igno
15181518
# unless we opt in to ignore it again
15191519
assert ('ssshhh....' in pot_content) != with_underscore_ignore
15201520
assert ('_hidden_by_default' in pot_content) != with_underscore_ignore
1521+
1522+
1523+
def test_extract_header_comment(monkeypatch, tmp_path):
1524+
pot_file = tmp_path / 'temp.pot'
1525+
monkeypatch.chdir(project_dir)
1526+
cmdinst = configure_cli_command(f"extract . -o '{pot_file}' --header-comment 'Boing' ")
1527+
cmdinst.run()
1528+
pot_content = pot_file.read_text()
1529+
assert 'Boing' in pot_content

0 commit comments

Comments
 (0)