Skip to content

Commit 48cfbd2

Browse files
committed
fix: Remove a prop
1 parent 28b4e5f commit 48cfbd2

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

src/c2pa/c2pa.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff 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

20102001
class Builder:
20112002
"""High-level wrapper for C2PA Builder operations."""

tests/test_unit_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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):

0 commit comments

Comments
 (0)