|
32 | 32 | pytest.mark.plutus, |
33 | 33 | ] |
34 | 34 |
|
| 35 | +PHorizonFundsT = tuple[list[clusterlib.UTXOData], list[clusterlib.UTXOData], clusterlib.TxRawOutput] |
| 36 | + |
35 | 37 |
|
36 | 38 | @pytest.fixture |
37 | 39 | def payment_addrs( |
@@ -59,11 +61,12 @@ def past_horizon_funds( |
59 | 61 | cluster_manager: cluster_management.ClusterManager, |
60 | 62 | cluster: clusterlib.ClusterLib, |
61 | 63 | payment_addrs: list[clusterlib.AddressRecord], |
62 | | - ) -> tuple[list[clusterlib.UTXOData], list[clusterlib.UTXOData], clusterlib.TxRawOutput]: |
| 64 | + ) -> PHorizonFundsT: |
63 | 65 | """Create UTxOs for `test_ttl_horizon`.""" |
| 66 | + fixture_cache: cluster_management.FixtureCache[PHorizonFundsT | None] |
64 | 67 | with cluster_manager.cache_fixture() as fixture_cache: |
65 | | - if fixture_cache.value: |
66 | | - return fixture_cache.value # type: ignore |
| 68 | + if fixture_cache.value is not None: |
| 69 | + return fixture_cache.value |
67 | 70 |
|
68 | 71 | temp_template = common.get_test_id(cluster) |
69 | 72 | payment_addr = payment_addrs[0] |
@@ -1140,9 +1143,7 @@ def test_ttl_horizon( |
1140 | 1143 | self, |
1141 | 1144 | cluster: clusterlib.ClusterLib, |
1142 | 1145 | payment_addrs: list[clusterlib.AddressRecord], |
1143 | | - past_horizon_funds: tuple[ |
1144 | | - list[clusterlib.UTXOData], list[clusterlib.UTXOData], clusterlib.TxRawOutput |
1145 | | - ], |
| 1146 | + past_horizon_funds: PHorizonFundsT, |
1146 | 1147 | plutus_version: str, |
1147 | 1148 | ttl_offset: int, |
1148 | 1149 | ): |
|
0 commit comments