mirror of
https://github.com/PR0M3TH3AN/unredact.git
synced 2026-10-27 08:40:29 +00:00
feat: add offset_x/offset_y to analyze response for alignment guess
Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
1 parent
23cbfcc862
commit
3c867de6aa
2 files changed
+15
No files matched your search
@@ -97,6 +97,10 @@ async def test_redaction_analyze(pdf_bytes: bytes):
|
||||
assert data["gap"]["w"] > 0
|
||||
assert data["font"]["name"]
|
||||
assert data["font"]["size"] > 0
|
||||
assert "offset_x" in data
|
||||
assert "offset_y" in data
|
||||
assert isinstance(data["offset_x"], (int, float))
|
||||
assert isinstance(data["offset_y"], (int, float))
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
|
||||
Reference in new issue
Block a user