77import logging
88import pathlib as pl
99import re
10- import string
1110import time
1211import typing as tp
1312
3130
3231LOGGER = logging .getLogger (__name__ )
3332
34- ADDR_ALPHABET = list (f"{ string .ascii_lowercase } { string .digits } " )
35-
3633
3734class TestNegative :
3835 """Transaction tests that are expected to fail."""
@@ -872,7 +869,7 @@ def test_send_funds_to_utxo_address(
872869
873870 @allure .link (helpers .get_vcs_link ())
874871 @common .PARAM_BUILD_METHOD
875- @hypothesis .given (addr = st .text (alphabet = ADDR_ALPHABET , min_size = 98 , max_size = 98 ))
872+ @hypothesis .given (addr = st .text (alphabet = common . ADDR_ALPHABET , min_size = 98 , max_size = 98 ))
876873 @common .hypothesis_settings (300 )
877874 @pytest .mark .smoke
878875 @pytest .mark .testnets
@@ -899,7 +896,7 @@ def test_send_funds_to_invalid_address(
899896 )
900897
901898 @allure .link (helpers .get_vcs_link ())
902- @hypothesis .given (addr = st .text (alphabet = ADDR_ALPHABET , min_size = 50 , max_size = 250 ))
899+ @hypothesis .given (addr = st .text (alphabet = common . ADDR_ALPHABET , min_size = 50 , max_size = 250 ))
903900 @common .hypothesis_settings (300 )
904901 @common .PARAM_BUILD_METHOD
905902 @pytest .mark .smoke
@@ -957,7 +954,7 @@ def test_send_funds_to_invalid_chars_address(
957954 )
958955
959956 @allure .link (helpers .get_vcs_link ())
960- @hypothesis .given (addr = st .text (alphabet = ADDR_ALPHABET , min_size = 98 , max_size = 98 ))
957+ @hypothesis .given (addr = st .text (alphabet = common . ADDR_ALPHABET , min_size = 98 , max_size = 98 ))
961958 @common .hypothesis_settings (300 )
962959 @common .PARAM_BUILD_METHOD
963960 @pytest .mark .smoke
@@ -985,7 +982,7 @@ def test_send_funds_from_invalid_address(
985982 )
986983
987984 @allure .link (helpers .get_vcs_link ())
988- @hypothesis .given (addr = st .text (alphabet = ADDR_ALPHABET , min_size = 50 , max_size = 250 ))
985+ @hypothesis .given (addr = st .text (alphabet = common . ADDR_ALPHABET , min_size = 50 , max_size = 250 ))
989986 @common .hypothesis_settings (300 )
990987 @common .PARAM_BUILD_METHOD
991988 @pytest .mark .smoke
@@ -1044,7 +1041,7 @@ def test_send_funds_from_invalid_chars_address(
10441041
10451042 @allure .link (helpers .get_vcs_link ())
10461043 @common .SKIPIF_BUILD_UNUSABLE
1047- @hypothesis .given (addr = st .text (alphabet = ADDR_ALPHABET , min_size = 98 , max_size = 98 ))
1044+ @hypothesis .given (addr = st .text (alphabet = common . ADDR_ALPHABET , min_size = 98 , max_size = 98 ))
10481045 @common .hypothesis_settings (300 )
10491046 @pytest .mark .smoke
10501047 @pytest .mark .testnets
@@ -1096,7 +1093,7 @@ def test_build_send_funds_invalid_chars_change_address(
10961093
10971094 @allure .link (helpers .get_vcs_link ())
10981095 @common .SKIPIF_BUILD_UNUSABLE
1099- @hypothesis .given (addr = st .text (alphabet = ADDR_ALPHABET , min_size = 50 , max_size = 250 ))
1096+ @hypothesis .given (addr = st .text (alphabet = common . ADDR_ALPHABET , min_size = 50 , max_size = 250 ))
11001097 @common .hypothesis_settings (300 )
11011098 @pytest .mark .smoke
11021099 @pytest .mark .testnets
@@ -1205,7 +1202,7 @@ def test_nonexistent_utxo_hash(
12051202 raise ValueError (msg )
12061203
12071204 @allure .link (helpers .get_vcs_link ())
1208- @hypothesis .given (utxo_hash = st .text (alphabet = ADDR_ALPHABET , min_size = 10 , max_size = 550 ))
1205+ @hypothesis .given (utxo_hash = st .text (alphabet = common . ADDR_ALPHABET , min_size = 10 , max_size = 550 ))
12091206 @common .hypothesis_settings (300 )
12101207 @common .PARAM_BUILD_METHOD
12111208 @pytest .mark .smoke
@@ -1241,7 +1238,7 @@ def test_invalid_length_utxo_hash(
12411238
12421239 @allure .link (helpers .get_vcs_link ())
12431240 @common .SKIPIF_BUILD_UNUSABLE
1244- @hypothesis .given (utxo_hash = st .text (alphabet = ADDR_ALPHABET , min_size = 10 , max_size = 550 ))
1241+ @hypothesis .given (utxo_hash = st .text (alphabet = common . ADDR_ALPHABET , min_size = 10 , max_size = 550 ))
12451242 @common .hypothesis_settings (300 )
12461243 @pytest .mark .smoke
12471244 @pytest .mark .testnets
0 commit comments