Skip to content

Commit b0a585a

Browse files
chore: fix lint errors in test_chain_concurrency.py
- Remove unused imports (ChainVerificationResult, Seal) - Remove unused variable assignment (result) - Fix import sort order (stdlib before third-party)
1 parent 4f5cb80 commit b0a585a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

reference/python/tests/test_chain_concurrency.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@
2323
import pytest
2424

2525
from qp_capsule.capsule import Capsule, TriggerSection
26-
from qp_capsule.chain import CapsuleChain, ChainVerificationResult, _is_integrity_error, _MAX_CHAIN_RETRIES
26+
from qp_capsule.chain import CapsuleChain, _is_integrity_error, _MAX_CHAIN_RETRIES
2727
from qp_capsule.exceptions import CapsuleError, ChainConflictError, ChainError, StorageError
28-
from qp_capsule.seal import Seal
2928

3029

3130
def _make_capsule(request: str = "test") -> Capsule:
@@ -436,7 +435,7 @@ async def test_retry_re_reads_chain_head(self, temp_seal):
436435
chain = CapsuleChain(mock_storage)
437436
capsule = _make_capsule("retry-reread")
438437

439-
result = await chain.seal_and_store(capsule, seal=temp_seal)
438+
await chain.seal_and_store(capsule, seal=temp_seal)
440439

441440
assert mock_storage.get_latest.call_count == 2
442441
assert capsule.sequence == 1
@@ -479,7 +478,7 @@ def test_returns_version_string(self):
479478
assert version == "1.5.0"
480479

481480
def test_matches_package_version(self):
482-
from qp_capsule.cli import _get_version
483481
import qp_capsule
482+
from qp_capsule.cli import _get_version
484483

485484
assert _get_version() == qp_capsule.__version__

0 commit comments

Comments
 (0)