Skip to content

Commit 0285013

Browse files
committed
test: annotate the new overflow tests with -> None
CONTRIBUTING asks for return annotations so that mypy checks the function bodies.
1 parent 1de0394 commit 0285013

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/aws-durable-execution-sdk-python/tests/state_test.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,7 +1383,7 @@ def _oversized_queued_operation(
13831383
)
13841384

13851385

1386-
def test_collect_checkpoint_batch_sends_oversized_operation_from_overflow():
1386+
def test_collect_checkpoint_batch_sends_oversized_operation_from_overflow() -> None:
13871387
"""An operation above max_batch_size_bytes that reached the overflow queue is
13881388
still sent, alone, in the next batch (issue #871).
13891389
@@ -1429,7 +1429,7 @@ def test_collect_checkpoint_batch_sends_oversized_operation_from_overflow():
14291429
assert state._overflow_queue.empty()
14301430

14311431

1432-
def test_drain_overflow_takes_oversized_operation_when_batch_is_empty():
1432+
def test_drain_overflow_takes_oversized_operation_when_batch_is_empty() -> None:
14331433
"""_drain_overflow adds an operation above the size limit to an empty batch,
14341434
and refuses it once the batch holds another operation.
14351435
"""

0 commit comments

Comments
 (0)