@@ -346,11 +346,11 @@ def test_drep_id_is_blake2b_224_of_drep_vkey(
346346 self ,
347347 cluster : clusterlib .ClusterLib ,
348348 ):
349- """Test proper drep id is being generated.
349+ """Test that proper DRep id is being generated.
350350
351- * Register a drep
352- * Hash drep vkey using blake2b_224
353- * Check drep ID generated from cli is same as blake2b_224 hash of drep vkey
351+ * Register a DRep
352+ * Hash DRep vkey using blake2b_224
353+ * Check DRep ID generated from cli is same as blake2b_224 hash of DRep vkey
354354 """
355355 reqc .cip085 .start (url = helpers .get_vcs_link ())
356356 temp_template = common .get_test_id (cluster )
@@ -361,25 +361,25 @@ def test_drep_id_is_blake2b_224_of_drep_vkey(
361361 drep_metadata_hash = cluster .g_conway_governance .drep .get_metadata_hash (
362362 drep_metadata_file = drep_metadata_file
363363 )
364- # Get a drep registration record
364+ # Get a DRep registration record
365365 reg_drep = governance_utils .get_drep_reg_record (
366366 cluster_obj = cluster ,
367367 name_template = temp_template ,
368368 drep_metadata_url = drep_metadata_url ,
369369 drep_metadata_hash = drep_metadata_hash ,
370370 )
371371 vkey_file_path = reg_drep .key_pair .vkey_file
372- # Get drep vkey from vkey file
372+ # Get DRep vkey from vkey file
373373 with open (vkey_file_path ) as vkey_file :
374374 vkey_file_json = json .loads (vkey_file .read ())
375375 cbor_hex = vkey_file_json ["cborHex" ]
376376 cbor_binary = binascii .unhexlify (cbor_hex )
377377 decoded_data = cbor2 .loads (cbor_binary )
378378 blake2b_224 = hashlib .blake2b (digest_size = 28 )
379379 blake2b_224 .update (decoded_data )
380- # Obtain blake2b_224 hash of drep vkey
380+ # Obtain blake2b_224 hash of DRep vkey
381381 hash_digest = blake2b_224 .hexdigest ()
382- assert reg_drep .drep_id == hash_digest , "Drep ID hash is not blake2b_224."
382+ assert reg_drep .drep_id == hash_digest , "DRep ID hash is not blake2b_224."
383383 reqc .cip085 .success ()
384384
385385 @allure .link (helpers .get_vcs_link ())
@@ -397,11 +397,11 @@ def test_register_and_retire_drep(
397397 ):
398398 """Test DRep registration and retirement.
399399
400- * register DRep
401- * check that DRep was registered
402- * retire DRep
403- * check that DRep was retired
404- * check that deposit was returned to source address
400+ * Register DRep
401+ * Check that DRep was registered
402+ * Retire DRep
403+ * Check that DRep was retired
404+ * Check that deposit was returned to source address
405405 """
406406 # pylint: disable=too-many-locals
407407 temp_template = common .get_test_id (cluster )
@@ -544,9 +544,9 @@ def test_register_wrong_metadata(
544544 ):
545545 """Register a DRep with wrong metadata url.
546546
547- * register DRep with mismatch url metadata vs metadata file
548- * check that DRep was registered
549- * verify that dbsync is returning an error
547+ * Register DRep with mismatch url metadata vs metadata file
548+ * Check that DRep was registered
549+ * Verify that dbsync is returning an error
550550 """
551551 temp_template = common .get_test_id (cluster )
552552
@@ -650,12 +650,12 @@ def test_no_witness_register_and_retire( # noqa: C901
650650 There was a ledger issue that allowed a DRep to be registered without needing
651651 the corresponding skey witness.
652652
653- * try to register DRep without skey, expect failure
654- * register DRep
655- * check that DRep was registered
656- * try to retire DRep without skey, expect failure
657- * retire DRep
658- * check that DRep was retired
653+ * Try to register DRep without skey, expect failure
654+ * Register DRep
655+ * Check that DRep was registered
656+ * Try to retire DRep without skey, expect failure
657+ * Retire DRep
658+ * Check that DRep was retired
659659 """
660660 temp_template = common .get_test_id (cluster )
661661 errors_final = []
@@ -780,12 +780,12 @@ def test_no_multiple_delegation(
780780 testfile_temp_dir : pl .Path ,
781781 request : FixtureRequest ,
782782 ):
783- """Test No multiple delegation to different dreps .
783+ """Test that it is not possible to delegate to multiple DReps at the same time .
784784
785- * Create 2 Dreps
786- * Create vote delegation certifcate to both dreps
785+ * Create 2 DReps
786+ * Create vote delegation certifcate to both DReps
787787 * Submit both certificates
788- * check that the Drep certificate placed at last of the certificates is delegated to
788+ * Check that the DRep certificate placed at last of the certificates is delegated to
789789 """
790790 cluster = cluster_rewards
791791 temp_template = common .get_test_id (cluster )
@@ -816,7 +816,7 @@ def test_no_multiple_delegation(
816816 )
817817
818818 reqc .cip087 .start (url = helpers .get_vcs_link ())
819- # Create vote delegation cert for drep 1
819+ # Create vote delegation cert for DRep 1
820820 deleg_cert_1 = cluster .g_stake_address .gen_vote_delegation_cert (
821821 addr_name = f"{ temp_template } _addr1" ,
822822 stake_vkey_file = pool_user_rewards .stake .vkey_file ,
@@ -825,7 +825,7 @@ def test_no_multiple_delegation(
825825 always_no_confidence = False ,
826826 )
827827
828- # Create vote delegation cert for drep 2
828+ # Create vote delegation cert for DRep 2
829829 deleg_cert_2 = cluster .g_stake_address .gen_vote_delegation_cert (
830830 addr_name = f"{ temp_template } _addr2" ,
831831 stake_vkey_file = pool_user_rewards .stake .vkey_file ,
@@ -880,7 +880,7 @@ def test_no_delegation_without_stake_registration(
880880 custom_drep : governance_utils .DRepRegistration ,
881881 drep : str ,
882882 ):
883- """Test No voting delegation without registering stake address first.
883+ """Test that it is not possible to delegate without registering stake address first.
884884
885885 * Use a wallet without registered stake address
886886 * Create vote delegation certifcate using unregistered wallet stake key
@@ -932,11 +932,11 @@ def test_drep_no_retirement_before_register(
932932 use_build_cmd : bool ,
933933 submit_method : str ,
934934 ):
935- """Test No Drep retirement before register .
935+ """Test that it is not possible to retire DRep before registering it .
936936
937937 * Create a retirement certificate without registering
938938 * Submit certificate
939- * check it is not possible to retire before register
939+ * Check that it is not possible to retire before registering the DRep
940940 """
941941 temp_template = common .get_test_id (cluster )
942942 drep_keys = cluster .g_conway_governance .drep .gen_key_pair (
@@ -955,7 +955,7 @@ def test_drep_no_retirement_before_register(
955955 signing_key_files = [payment_addr .skey_file , drep_keys .skey_file ],
956956 )
957957
958- # Expecting error for both cases as drep is not registered
958+ # Expecting error for both cases as DRep is not registered
959959 with pytest .raises ((clusterlib .CLIError , submit_api .SubmitApiError )) as excinfo :
960960 clusterlib_utils .build_and_submit_tx (
961961 cluster_obj = cluster ,
@@ -983,10 +983,10 @@ def test_drep_no_multiple_registration(
983983 use_build_cmd : bool ,
984984 submit_method : str ,
985985 ):
986- """Test Drep cannot be registered multiple time .
986+ """Test that DRep cannot be registered multiple times .
987987
988- * Generate drep keys
989- * Create a drep registration certificate
988+ * Generate DRep keys
989+ * Create a DRep registration certificate
990990 * Submit the registration certificate twice
991991 * Expect ConwayDRepAlreadyRegistered on the second time
992992 """
@@ -1018,7 +1018,7 @@ def test_drep_no_multiple_registration(
10181018 signing_key_files = [payment_addr .skey_file , reg_drep .key_pair .skey_file ],
10191019 )
10201020
1021- # Submit drep registration certificate
1021+ # Submit DRep registration certificate
10221022 clusterlib_utils .build_and_submit_tx (
10231023 cluster_obj = cluster ,
10241024 name_template = f"{ temp_template } _reg" ,
@@ -1029,10 +1029,10 @@ def test_drep_no_multiple_registration(
10291029 deposit = reg_drep .deposit ,
10301030 )
10311031
1032- # Wait for some blocks and again submit drep registration certificate
1032+ # Wait for some blocks and again submit DRep registration certificate
10331033 cluster .wait_for_new_block (new_blocks = 2 )
10341034
1035- # Expecting error as drep is already registered
1035+ # Expecting error as DRep is already registered
10361036 with pytest .raises ((clusterlib .CLIError , submit_api .SubmitApiError )) as excinfo :
10371037 clusterlib_utils .build_and_submit_tx (
10381038 cluster_obj = cluster ,
@@ -1073,14 +1073,14 @@ def test_dreps_delegation(
10731073 ):
10741074 """Test delegating to DReps.
10751075
1076- * register stake address
1077- * delegate stake to following DReps:
1076+ * Register stake address
1077+ * Delegate stake to following DReps:
10781078
10791079 - always-abstain
10801080 - always-no-confidence
10811081 - custom DRep
10821082
1083- * check that the stake address is registered
1083+ * Check that the stake address is registered
10841084 """
10851085 # pylint: disable=too-many-statements,too-many-locals
10861086 cluster = cluster_rewards
@@ -1255,7 +1255,7 @@ def _deregister():
12551255
12561256 assert (
12571257 db_drep_distr
1258- ), f"No Drep distribution found for Drep { drep_id_bech32 } and epoch { deleg_epoch } "
1258+ ), f"No DRep distribution found for DRep { drep_id_bech32 } and epoch { deleg_epoch } "
12591259 assert (
12601260 db_drep_distr [0 ].amount >= deleg_amount
12611261 ), f"Unexpected delegated amount in dbsync: { db_drep_distr [0 ].amount } < { deleg_amount } "
@@ -1282,14 +1282,14 @@ def test_dreps_and_spo_delegation(
12821282 ):
12831283 """Test delegating to DRep and SPO using single certificate.
12841284
1285- * register stake address
1286- * delegate stake to a stake pool and to following DReps:
1285+ * Register stake address
1286+ * Delegate stake to a stake pool and to following DReps:
12871287
12881288 - always-abstain
12891289 - always-no-confidence
12901290 - custom DRep
12911291
1292- * check that the stake address is registered and delegated
1292+ * Check that the stake address is registered and delegated
12931293 """
12941294 cluster , pool_id = cluster_and_pool_and_rewards
12951295 temp_template = common .get_test_id (cluster )
@@ -1434,20 +1434,20 @@ def test_change_delegation(
14341434 testfile_temp_dir : pl .Path ,
14351435 request : FixtureRequest ,
14361436 ):
1437- """Test Change delegation to different dreps .
1437+ """Test changing delegation to a different DRep .
14381438
1439- * Create 2 Dreps
1440- * Create vote delegation certifcate for first drep
1439+ * Create 2 DReps
1440+ * Create vote delegation certifcate for the first DRep
14411441 * Submit certificate
1442- * check that the delegation is of correct drep id
1442+ * Check that the delegation is of correct DRep id
14431443 * Change delegation to drep2 and submit certificate
1444- * Check vote delegation is updated to second drep
1444+ * Check that vote delegation is updated to second DRep
14451445 """
14461446 cluster = cluster_rewards
14471447 temp_template = common .get_test_id (cluster )
14481448 deposit_amt = cluster .g_query .get_address_deposit ()
14491449 key1 = helpers .get_current_line_str ()
1450- # Get first drep
1450+ # Get first DRep
14511451 drep1 = get_custom_drep (
14521452 name_template = f"custom_drep_1_{ temp_template } " ,
14531453 cluster_manager = cluster_manager ,
@@ -1457,7 +1457,7 @@ def test_change_delegation(
14571457 )
14581458
14591459 key2 = helpers .get_current_line_str ()
1460- # Get second drep
1460+ # Get second DRep
14611461 drep2 = get_custom_drep (
14621462 name_template = f"custom_drep_2_{ temp_template } " ,
14631463 cluster_manager = cluster_manager ,
0 commit comments