fix: robustify EndSetup detection and add warning test
This commit is contained in:
@@ -79,3 +79,9 @@ class TestProcessStream:
|
||||
ps = "%!PS\n%%BeginSetup\n%%EndSetup\nshowpage\n"
|
||||
result = self._collect(ps, "00012345")
|
||||
assert b"showpage\n" in result
|
||||
|
||||
def test_warns_when_no_injection_point(self, capsys):
|
||||
ps = "%!PS\nshowpage\n"
|
||||
self._collect(ps, "00012345")
|
||||
captured = capsys.readouterr()
|
||||
assert "WARNING" in captured.err
|
||||
|
||||
Reference in New Issue
Block a user