File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed
Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -1997,15 +1997,6 @@ def reserve_size(self) -> int:
19971997
19981998 return result
19991999
2000- @property
2001- def closed (self ) -> bool :
2002- """Check if the signer is closed.
2003-
2004- Returns:
2005- bool: True if the signer is closed, False otherwise
2006- """
2007- return self ._closed
2008-
20092000
20102001class Builder :
20112002 """High-level wrapper for C2PA Builder operations."""
Original file line number Diff line number Diff line change @@ -443,7 +443,7 @@ def test_reserve_size_on_closed_signer(self):
443443 )
444444 signer = Signer .from_info (signer_info )
445445 signer .close ()
446- self . assertTrue ( signer . closed )
446+ # Verify signer is closed by testing that operations fail
447447 with self .assertRaises (Error ):
448448 signer .reserve_size ()
449449
@@ -456,7 +456,7 @@ def test_signer_double_close(self):
456456 )
457457 signer = Signer .from_info (signer_info )
458458 signer .close ()
459- self . assertTrue ( signer . closed )
459+ # Second close should not raise an exception
460460 signer .close ()
461461
462462 def test_builder_detects_malformed_json (self ):
You can’t perform that action at this time.
0 commit comments