@@ -79,7 +79,7 @@ def create_drep(
7979 name_template = f"{ name_template } _drep_reg" ,
8080 src_address = payment_addr .address ,
8181 submit_method = submit_utils .SubmitMethods .CLI ,
82- use_build_cmd = True ,
82+ build_method = clusterlib_utils . BuildMethods . BUILD ,
8383 tx_files = tx_files_reg ,
8484 deposit = reg_drep .deposit ,
8585 )
@@ -316,7 +316,7 @@ def test_drep_id_is_blake2b_224_of_drep_vkey(
316316
317317 @allure .link (helpers .get_vcs_link ())
318318 @submit_utils .PARAM_SUBMIT_METHOD
319- @common .PARAM_USE_BUILD_CMD
319+ @common .PARAM_BUILD_METHOD_NO_EST
320320 @pytest .mark .dbsync
321321 @pytest .mark .testnets
322322 @pytest .mark .smoke
@@ -340,7 +340,7 @@ def test_register_and_retire_drep(
340340 cluster_manager : cluster_management .ClusterManager ,
341341 cluster : clusterlib .ClusterLib ,
342342 payment_addr : clusterlib .AddressRecord ,
343- use_build_cmd : bool ,
343+ build_method : str ,
344344 submit_method : str ,
345345 drep_metadata : dict ,
346346 ):
@@ -399,7 +399,7 @@ def test_register_and_retire_drep(
399399 name_template = f"{ temp_template } _reg" ,
400400 src_address = payment_addr .address ,
401401 submit_method = submit_method ,
402- use_build_cmd = use_build_cmd ,
402+ build_method = build_method ,
403403 tx_files = tx_files_reg ,
404404 deposit = reg_drep .deposit ,
405405 )
@@ -435,7 +435,7 @@ def test_register_and_retire_drep(
435435 # The same metadata is used for all the parametrized tests. Therefore the data will
436436 # be present in db-sync once the first parametrized test runs. Therefore it doesn't
437437 # make sense to check the metadata for all combinations of parameters.
438- if use_build_cmd and submit_method == "cli" :
438+ if build_method == clusterlib_utils . BuildMethods . BUILD and submit_method == "cli" :
439439
440440 def _query_func ():
441441 if not drep_data :
@@ -473,7 +473,7 @@ def _query_func():
473473 name_template = f"{ temp_template } _ret" ,
474474 src_address = payment_addr .address ,
475475 submit_method = submit_method ,
476- use_build_cmd = use_build_cmd ,
476+ build_method = build_method ,
477477 tx_files = tx_files_ret ,
478478 deposit = - reg_drep .deposit ,
479479 )
@@ -603,15 +603,15 @@ class TestNegativeDReps:
603603 """Tests for DReps where we test failing condition."""
604604
605605 @allure .link (helpers .get_vcs_link ())
606- @common .PARAM_USE_BUILD_CMD
606+ @common .PARAM_BUILD_METHOD_NO_EST
607607 @pytest .mark .testnets
608608 @pytest .mark .smoke
609609 def test_no_witness_register_and_retire ( # noqa: C901
610610 self ,
611611 cluster_manager : cluster_management .ClusterManager ,
612612 cluster : clusterlib .ClusterLib ,
613613 payment_addr : clusterlib .AddressRecord ,
614- use_build_cmd : bool ,
614+ build_method : str ,
615615 ):
616616 """Test DRep registration and retirement without needing an skey as witness.
617617
@@ -658,7 +658,7 @@ def test_no_witness_register_and_retire( # noqa: C901
658658 cluster_obj = cluster ,
659659 name_template = f"{ temp_template } _reg" ,
660660 src_address = payment_addr .address ,
661- use_build_cmd = use_build_cmd ,
661+ build_method = build_method ,
662662 tx_files = tx_files_reg_missing ,
663663 deposit = reg_drep .deposit ,
664664 )
@@ -680,7 +680,7 @@ def test_no_witness_register_and_retire( # noqa: C901
680680 cluster_obj = cluster ,
681681 name_template = f"{ temp_template } _reg" ,
682682 src_address = payment_addr .address ,
683- use_build_cmd = use_build_cmd ,
683+ build_method = build_method ,
684684 tx_files = tx_files_reg ,
685685 deposit = reg_drep .deposit ,
686686 )
@@ -707,7 +707,7 @@ def test_no_witness_register_and_retire( # noqa: C901
707707 cluster_obj = cluster ,
708708 name_template = f"{ temp_template } _ret" ,
709709 src_address = payment_addr .address ,
710- use_build_cmd = use_build_cmd ,
710+ build_method = build_method ,
711711 tx_files = tx_files_ret_missing ,
712712 deposit = - reg_drep .deposit ,
713713 )
@@ -729,7 +729,7 @@ def test_no_witness_register_and_retire( # noqa: C901
729729 cluster_obj = cluster ,
730730 name_template = f"{ temp_template } _ret" ,
731731 src_address = payment_addr .address ,
732- use_build_cmd = use_build_cmd ,
732+ build_method = build_method ,
733733 tx_files = tx_files_ret ,
734734 deposit = - reg_drep .deposit ,
735735 )
@@ -826,7 +826,7 @@ def test_no_multiple_delegation(
826826 cluster_obj = cluster ,
827827 name_template = temp_template ,
828828 src_address = payment_addr_rewards .address ,
829- use_build_cmd = True ,
829+ build_method = clusterlib_utils . BuildMethods . BUILD ,
830830 tx_files = tx_files ,
831831 deposit = deposit_address_amt ,
832832 )
@@ -893,7 +893,7 @@ def test_no_delegation_without_stake_registration(
893893 cluster_obj = cluster ,
894894 name_template = temp_template ,
895895 src_address = payment_addr .address ,
896- use_build_cmd = True ,
896+ build_method = clusterlib_utils . BuildMethods . BUILD ,
897897 tx_files = tx_files ,
898898 deposit = deposit_address_amt ,
899899 )
@@ -904,14 +904,14 @@ def test_no_delegation_without_stake_registration(
904904
905905 @allure .link (helpers .get_vcs_link ())
906906 @submit_utils .PARAM_SUBMIT_METHOD
907- @common .PARAM_USE_BUILD_CMD
907+ @common .PARAM_BUILD_METHOD_NO_EST
908908 @pytest .mark .testnets
909909 @pytest .mark .smoke
910910 def test_drep_no_retirement_before_register (
911911 self ,
912912 cluster : clusterlib .ClusterLib ,
913913 payment_addr : clusterlib .AddressRecord ,
914- use_build_cmd : bool ,
914+ build_method : str ,
915915 submit_method : str ,
916916 ):
917917 """Test that it is not possible to retire DRep before registering it.
@@ -945,7 +945,7 @@ def test_drep_no_retirement_before_register(
945945 name_template = f"{ temp_template } _reg2" ,
946946 src_address = payment_addr .address ,
947947 submit_method = submit_method ,
948- use_build_cmd = use_build_cmd ,
948+ build_method = build_method ,
949949 tx_files = tx_files_ret ,
950950 deposit = deposit_drep_amt ,
951951 )
@@ -956,15 +956,15 @@ def test_drep_no_retirement_before_register(
956956
957957 @allure .link (helpers .get_vcs_link ())
958958 @submit_utils .PARAM_SUBMIT_METHOD
959- @common .PARAM_USE_BUILD_CMD
959+ @common .PARAM_BUILD_METHOD_NO_EST
960960 @pytest .mark .testnets
961961 @pytest .mark .smoke
962962 def test_drep_no_multiple_registration (
963963 self ,
964964 cluster_manager : cluster_management .ClusterManager ,
965965 cluster : clusterlib .ClusterLib ,
966966 payment_addr : clusterlib .AddressRecord ,
967- use_build_cmd : bool ,
967+ build_method : str ,
968968 submit_method : str ,
969969 ):
970970 """Test that DRep cannot be registered multiple times.
@@ -1013,7 +1013,7 @@ def test_drep_no_multiple_registration(
10131013 name_template = f"{ temp_template } _reg" ,
10141014 src_address = payment_addr .address ,
10151015 submit_method = submit_method ,
1016- use_build_cmd = use_build_cmd ,
1016+ build_method = build_method ,
10171017 tx_files = tx_files_reg ,
10181018 deposit = reg_drep .deposit ,
10191019 )
@@ -1028,7 +1028,7 @@ def test_drep_no_multiple_registration(
10281028 name_template = f"{ temp_template } _reg2" ,
10291029 src_address = payment_addr .address ,
10301030 submit_method = submit_method ,
1031- use_build_cmd = use_build_cmd ,
1031+ build_method = build_method ,
10321032 tx_files = tx_files_reg ,
10331033 deposit = reg_drep .deposit ,
10341034 )
@@ -1043,7 +1043,7 @@ class TestDelegDReps:
10431043
10441044 @allure .link (helpers .get_vcs_link ())
10451045 @submit_utils .PARAM_SUBMIT_METHOD
1046- @common .PARAM_USE_BUILD_CMD
1046+ @common .PARAM_BUILD_METHOD_NO_EST
10471047 @pytest .mark .parametrize ("drep" , ("always_abstain" , "always_no_confidence" , "custom" ))
10481048 @pytest .mark .dbsync
10491049 @pytest .mark .testnets
@@ -1056,7 +1056,7 @@ def test_dreps_delegation(
10561056 custom_drep_rewards : governance_utils .DRepRegistration ,
10571057 testfile_temp_dir : pl .Path ,
10581058 request : FixtureRequest ,
1059- use_build_cmd : bool ,
1059+ build_method : str ,
10601060 submit_method : str ,
10611061 drep : str ,
10621062 ):
@@ -1081,7 +1081,7 @@ def test_dreps_delegation(
10811081 # and submit method, only when we are running on local testnet, and only if we are not
10821082 # running smoke tests.
10831083 check_delegation = (
1084- use_build_cmd
1084+ build_method == clusterlib_utils . BuildMethods . BUILD
10851085 and submit_method == submit_utils .SubmitMethods .CLI
10861086 and cluster_nodes .get_cluster_type ().type == cluster_nodes .ClusterType .LOCAL
10871087 and "smoke" not in request .config .getoption ("-m" )
@@ -1138,7 +1138,7 @@ def test_dreps_delegation(
11381138 name_template = temp_template ,
11391139 src_address = payment_addr_rewards .address ,
11401140 submit_method = submit_method ,
1141- use_build_cmd = use_build_cmd ,
1141+ build_method = build_method ,
11421142 tx_files = tx_files ,
11431143 deposit = deposit_address_amt ,
11441144 )
@@ -1257,7 +1257,7 @@ def _deregister():
12571257
12581258 @allure .link (helpers .get_vcs_link ())
12591259 @submit_utils .PARAM_SUBMIT_METHOD
1260- @common .PARAM_USE_BUILD_CMD
1260+ @common .PARAM_BUILD_METHOD_NO_EST
12611261 @pytest .mark .parametrize ("drep" , ("always_abstain" , "always_no_confidence" , "custom" ))
12621262 @pytest .mark .testnets
12631263 @pytest .mark .smoke
@@ -1269,7 +1269,7 @@ def test_dreps_and_spo_delegation(
12691269 custom_drep_wpr : governance_utils .DRepRegistration ,
12701270 testfile_temp_dir : pl .Path ,
12711271 request : FixtureRequest ,
1272- use_build_cmd : bool ,
1272+ build_method : str ,
12731273 submit_method : str ,
12741274 drep : str ,
12751275 ):
@@ -1294,7 +1294,7 @@ def test_dreps_and_spo_delegation(
12941294 # and submit method, only when we are running on local testnet, and only if we are not
12951295 # running smoke tests.
12961296 check_delegation = (
1297- use_build_cmd
1297+ build_method == clusterlib_utils . BuildMethods . BUILD
12981298 and submit_method == submit_utils .SubmitMethods .CLI
12991299 and cluster_nodes .get_cluster_type ().type == cluster_nodes .ClusterType .LOCAL
13001300 and "smoke" not in request .config .getoption ("-m" )
@@ -1337,7 +1337,7 @@ def test_dreps_and_spo_delegation(
13371337 name_template = temp_template ,
13381338 src_address = payment_addr_wpr .address ,
13391339 submit_method = submit_method ,
1340- use_build_cmd = use_build_cmd ,
1340+ build_method = build_method ,
13411341 tx_files = tx_files ,
13421342 deposit = deposit_address_amt ,
13431343 )
@@ -1498,7 +1498,7 @@ def test_change_delegation(
14981498 cluster_obj = cluster ,
14991499 name_template = f"{ temp_template } _deleg_drep1" ,
15001500 src_address = payment_addr_rewards .address ,
1501- use_build_cmd = True ,
1501+ build_method = clusterlib_utils . BuildMethods . BUILD ,
15021502 tx_files = tx_files ,
15031503 deposit = deposit_address_amt ,
15041504 )
@@ -1542,7 +1542,7 @@ def _deregister():
15421542 cluster_obj = cluster ,
15431543 name_template = f"{ temp_template } _deleg_drep2" ,
15441544 src_address = payment_addr_rewards .address ,
1545- use_build_cmd = True ,
1545+ build_method = clusterlib_utils . BuildMethods . BUILD ,
15461546 tx_files = tx_files ,
15471547 deposit = deposit_address_amt ,
15481548 )
@@ -1694,7 +1694,7 @@ def _delegate_addr(
16941694 cluster_obj = cluster ,
16951695 name_template = name_template ,
16961696 src_address = pool_user .payment .address ,
1697- use_build_cmd = True ,
1697+ build_method = clusterlib_utils . BuildMethods . BUILD ,
16981698 tx_files = tx_files ,
16991699 deposit = deposit_address_amt ,
17001700 )
@@ -1794,7 +1794,7 @@ def _update_drep_activity(
17941794 payment_addr = pool_user_lg .payment ,
17951795 votes = votes ,
17961796 keys = vote_keys ,
1797- use_build_cmd = True ,
1797+ build_method = clusterlib_utils . BuildMethods . BUILD ,
17981798 )
17991799
18001800 return prop_rec .action_txid
0 commit comments