Merge pull request #776 from christianlouis/copilot/sub-pr-774-again
test(convert_to_pdfa): lock in `--` end-of-options guard with positional assertions
This commit is contained in:
@@ -77,6 +77,8 @@ class TestConvertPdfToPdfa:
|
||||
_convert_pdf_to_pdfa("/input.pdf", "/output.pdf", fmt)
|
||||
cmd = mock_run.call_args[0][0]
|
||||
assert f"pdfa-{fmt}" in cmd
|
||||
assert "--" in cmd
|
||||
assert cmd.index("--") < cmd.index("/input.pdf")
|
||||
|
||||
def test_invalid_pdfa_format_rejected(self):
|
||||
"""Test that invalid PDF/A format values are rejected."""
|
||||
|
||||
Reference in New Issue
Block a user