Coverage for tests/utils/context/binary_block_context.py: 100%

13 statements  

« prev     ^ index     » next       coverage.py v7.17.3, created at 2026-11-22 19:49 +0000

1from .test_context import TestContext 

2 

3 

4class BinaryBlockContext(TestContext): 

5 """Binary block test context.""" 

6 

7 def __init__(self) -> None: 

8 """Initialize a new binary block test context.""" 

9 super().__init__() 

10 # set binary block test context constants 

11 self.has_hex = False 

12 self.header_is_full = False 

13 self.has_txs = True 

14 self.tx_context = TestContext() 

15 self.tx_context.is_pruned = False 

16 self.tx_context.is_confirmed = True 

17 self.tx_context.from_get_tx_pool = False 

18 self.tx_context.has_output_indices = False 

19 self.tx_context.from_binary_block = True