Skip to content

Commit a8e1850

Browse files
authored
Merge pull request #2817 from IntersectMBO/dont_cache_dreps
refactor(tests): don't cache DReps created in test
2 parents b6985cc + 776ddae commit a8e1850

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

cardano_node_tests/tests/tests_conway/test_drep.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,6 @@ def test_no_witness_register_and_retire( # noqa: C901
774774
def test_no_multiple_delegation(
775775
self,
776776
cluster_rewards: clusterlib.ClusterLib,
777-
cluster_manager: cluster_management.ClusterManager,
778777
payment_addr_rewards: clusterlib.AddressRecord,
779778
pool_user_rewards: clusterlib.PoolUser,
780779
testfile_temp_dir: pl.Path,
@@ -790,22 +789,16 @@ def test_no_multiple_delegation(
790789
cluster = cluster_rewards
791790
temp_template = common.get_test_id(cluster)
792791
deposit_amt = cluster.g_query.get_address_deposit()
793-
key1 = helpers.get_current_line_str()
794-
drep1 = get_custom_drep(
792+
793+
drep1 = create_drep(
795794
name_template=f"custom_drep_1_{temp_template}",
796-
cluster_manager=cluster_manager,
797795
cluster_obj=cluster,
798796
payment_addr=payment_addr_rewards,
799-
caching_key=key1,
800797
)
801-
802-
key2 = helpers.get_current_line_str()
803-
drep2 = get_custom_drep(
798+
drep2 = create_drep(
804799
name_template=f"custom_drep_2_{temp_template}",
805-
cluster_manager=cluster_manager,
806800
cluster_obj=cluster,
807801
payment_addr=payment_addr_rewards,
808-
caching_key=key2,
809802
)
810803

811804
# Create stake address registration cert

0 commit comments

Comments
 (0)