2023-10-23 15:43:17 +00:00
|
|
|
import random
|
|
|
|
import string
|
2023-08-04 18:27:03 +00:00
|
|
|
from collections import namedtuple
|
|
|
|
|
2023-09-04 18:36:48 +00:00
|
|
|
import configs
|
|
|
|
|
2023-10-23 15:43:17 +00:00
|
|
|
UserAccount = namedtuple('User', ['name', 'password', 'seed_phrase', 'status_address'])
|
2023-09-14 08:51:22 +00:00
|
|
|
user_account_one = UserAccount('squisher', '0000000000', [
|
2023-08-10 11:43:17 +00:00
|
|
|
'rail', 'witness', 'era', 'asthma', 'empty', 'cheap', 'shed', 'pond', 'skate', 'amount', 'invite', 'year'
|
2023-10-23 15:43:17 +00:00
|
|
|
], '0x3286c371ef648fe6232324b27ee0515f4ded24d9')
|
2023-09-14 08:51:22 +00:00
|
|
|
user_account_two = UserAccount('athletic', '0000000000', [
|
2023-09-11 18:24:13 +00:00
|
|
|
'measure', 'cube', 'cousin', 'debris', 'slam', 'ignore', 'seven', 'hat', 'satisfy', 'frown', 'casino', 'inflict'
|
2023-10-23 15:43:17 +00:00
|
|
|
], '0x99C096bB5F12bDe37DE9dbee8257Ebe2a5667C46')
|
|
|
|
user_account_three = UserAccount('nervous', '0000000000', [], '')
|
2023-08-29 14:43:00 +00:00
|
|
|
|
2024-03-27 09:50:40 +00:00
|
|
|
# users for group chat test
|
|
|
|
group_chat_user_1 = UserAccount('group_chat_user_1', '77_80Y+2Eh', [
|
2024-08-09 12:34:19 +00:00
|
|
|
'trophy', 'math', 'robust', 'lake', 'extend', 'cabbage', 'bicycle', 'begin', 'either', 'car', 'race', 'cousin'],
|
|
|
|
'0xcd488381c1664c9585b7940f1c4b20f884b8b4a9')
|
2024-03-27 09:58:54 +00:00
|
|
|
group_chat_user_2 = UserAccount('group_chat_user_2', '521/97Qv\:', [
|
|
|
|
'opera', 'great', 'open', 'sight', 'still', 'quantum', 'flight', 'torch', 'mule', 'cage', 'noise', 'horn'
|
|
|
|
|
|
|
|
], '0x472078f0110d0bb0dfc73389ce89d8a83c8c0502')
|
2024-03-27 10:08:03 +00:00
|
|
|
group_chat_user_3 = UserAccount('group_chat_user_3', '29T\I8Cv_G', [
|
|
|
|
'bless', 'enter', 'wet', 'foot', 'lazy', 'will', 'reform', 'enemy', 'rubber', 'void', 'journey', 'fence'
|
|
|
|
], '0x4b04b8e22e8295d0ae3177774e4acfd0badacf09')
|
2023-09-22 08:44:29 +00:00
|
|
|
|
2024-03-28 09:19:23 +00:00
|
|
|
# usernames and passwords for join community test
|
2024-03-28 07:20:12 +00:00
|
|
|
community_user_1 = UserAccount('community_user_1', '|Br2w547YN', [
|
|
|
|
'skirt', 'tired', 'finger', 'dinosaur', 'equal', 'garlic', 'snap', 'tired', 'friend', 'rack', 'net', 'imitate'
|
|
|
|
], '0x21371358f1ba09204475e87444962ea4519771e1')
|
|
|
|
community_user_2 = UserAccount('community_user_2', 'vSq5T702_p', [
|
|
|
|
'will', 'horn', 'tail', 'stock', 'puzzle', 'warfare', 'pledge', 'uniform', 'ozone', 'taste', 'someone', 'silk'
|
|
|
|
], '0x935034600f2ba486324cee6ae3f96ad8c8915ac6')
|
|
|
|
|
2024-03-28 11:37:24 +00:00
|
|
|
user_with_random_attributes_1 = UserAccount(
|
2024-08-09 12:34:19 +00:00
|
|
|
''.join((random.choice(
|
|
|
|
string.ascii_letters + string.digits + random.choice('_- '))
|
|
|
|
for _ in range(5, 25))
|
|
|
|
).strip(' '),
|
|
|
|
''.join((random.choice(
|
|
|
|
string.ascii_letters + string.digits + string.punctuation)
|
|
|
|
for _ in range(10, 28))
|
|
|
|
), [], ''
|
2024-03-28 11:37:24 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
user_with_random_attributes_2 = UserAccount(
|
2024-08-09 12:34:19 +00:00
|
|
|
''.join((random.choice(
|
|
|
|
string.ascii_letters + string.digits + random.choice('_- '))
|
|
|
|
for _ in range(5, 25))
|
|
|
|
).strip(' '),
|
|
|
|
''.join((random.choice(
|
|
|
|
string.ascii_letters + string.digits + string.punctuation)
|
|
|
|
for _ in range(10, 28))
|
|
|
|
), [], ''
|
|
|
|
)
|
|
|
|
|
|
|
|
user_with_random_attributes_3 = UserAccount(
|
|
|
|
''.join((random.choice(
|
|
|
|
string.ascii_letters + string.digits + random.choice('_- '))
|
|
|
|
for _ in range(5, 25))
|
|
|
|
).strip(' '),
|
|
|
|
''.join((random.choice(
|
|
|
|
string.ascii_letters + string.digits + string.punctuation)
|
|
|
|
for _ in range(10, 28))
|
|
|
|
), [], ''
|
2024-03-28 11:37:24 +00:00
|
|
|
)
|
2024-03-28 09:19:23 +00:00
|
|
|
|
2024-03-27 09:50:40 +00:00
|
|
|
user_account_one_changed_password = UserAccount('squisher', 'NewPassword@12345', [], '')
|
2023-10-23 15:43:17 +00:00
|
|
|
user_account_one_changed_name = UserAccount('NewUserName', '0000000000', [], '')
|
2023-09-20 11:35:56 +00:00
|
|
|
|
2023-12-05 13:23:02 +00:00
|
|
|
user_with_funds = UserAccount('User_with_funds', '0000000000', [
|
2023-12-28 16:22:50 +00:00
|
|
|
'vocal', 'fruit', 'ordinary', 'meadow', 'south', 'athlete', 'inherit', 'since', 'version', 'pitch', 'oppose',
|
|
|
|
'lonely'
|
2023-12-05 13:23:02 +00:00
|
|
|
], '0x26d6e10a6af4eb4d12ff4cf133a843eb4fa88d0b')
|
|
|
|
|
2023-09-11 18:24:13 +00:00
|
|
|
community_params = {
|
2023-12-28 16:22:50 +00:00
|
|
|
'name': ''.join(random.choices(string.ascii_letters +
|
|
|
|
string.digits, k=30)),
|
|
|
|
'description': ''.join(random.choices(string.ascii_letters +
|
2024-08-09 12:34:19 +00:00
|
|
|
string.digits, k=140)),
|
2024-02-13 12:47:11 +00:00
|
|
|
'logo': {'fp': configs.testpath.TEST_IMAGES / 'comm_logo.jpeg', 'zoom': None, 'shift': None},
|
|
|
|
'banner': {'fp': configs.testpath.TEST_IMAGES / 'comm_banner.jpeg', 'zoom': None, 'shift': None},
|
2023-10-23 15:43:17 +00:00
|
|
|
'intro': ''.join(random.choices(string.ascii_letters +
|
|
|
|
string.digits, k=200)),
|
|
|
|
'outro': ''.join(random.choices(string.ascii_letters +
|
|
|
|
string.digits, k=80))
|
2023-09-04 18:36:48 +00:00
|
|
|
}
|
2023-08-29 14:43:00 +00:00
|
|
|
|
2023-09-04 18:36:48 +00:00
|
|
|
UserCommunityInfo = namedtuple('CommunityInfo', ['name', 'description', 'members', 'image'])
|
2024-01-11 09:18:19 +00:00
|
|
|
UserChannel = namedtuple('Channel', ['name', 'selected', 'visible'])
|
2023-09-05 06:22:44 +00:00
|
|
|
|
2023-09-11 18:24:13 +00:00
|
|
|
account_list_item = namedtuple('AccountListItem', ['name', 'color', 'emoji'])
|
2023-11-03 16:33:13 +00:00
|
|
|
wallet_account_list_item = namedtuple('WalletAccountListItem', ['name', 'icon_color', 'icon_emoji', 'object'])
|
2023-10-24 12:32:19 +00:00
|
|
|
|
2023-11-01 13:58:38 +00:00
|
|
|
account_list_item_2 = namedtuple('AccountListItem', ['name2', 'color2', 'emoji2'])
|
|
|
|
wallet_account_list_item_2 = namedtuple('WalletAccountListItem', ['name', 'icon', 'object'])
|
|
|
|
|
2023-10-24 12:32:19 +00:00
|
|
|
wallet_account = namedtuple('PrivateKeyAddressPair', ['private_key', 'wallet_address'])
|
2023-11-03 16:33:13 +00:00
|
|
|
private_key_address_pair_1 = wallet_account('2daa36a3abe381a9c01610bf10fda272fbc1b8a22179a39f782c512346e3e470',
|
|
|
|
'0xd89b48cbcb4244f84a4fb5d3369c120e8f8aa74e')
|
2023-12-11 07:20:57 +00:00
|
|
|
|
2024-05-13 07:09:56 +00:00
|
|
|
token_list_item = namedtuple('TokenListItem', ['title', 'object'])
|
|
|
|
|
2023-12-11 07:20:57 +00:00
|
|
|
ens_user_name = ''.join(
|
|
|
|
random.choices(string.digits + string.ascii_lowercase, k=8))
|
2024-02-19 07:18:46 +00:00
|
|
|
|
2024-08-09 12:34:19 +00:00
|
|
|
community_tags = ['Activism', 'Art', 'Blockchain', 'Books & blogs', 'Career', 'Collaboration', 'Commerce', 'Culture',
|
|
|
|
'DAO', 'DIY', 'DeFi', 'Design', 'Education', 'Entertainment', 'Environment', 'Ethereum', 'Event',
|
|
|
|
'Fantasy', 'Fashion', 'Food', 'Gaming', 'Global', 'Health', 'Hobby', 'Innovation', 'Language',
|
|
|
|
'Lifestyle', 'Local', 'Love', 'Markets', 'Movies & TV', 'Music', 'NFT', 'NSFW', 'News', 'Non-profit',
|
|
|
|
'Org', 'Pets', 'Play', 'Podcast', 'Politics', 'Privacy', 'Product', 'Psyche', 'Security', 'Social',
|
|
|
|
'Software dev', 'Sports', 'Tech', 'Travel', 'Vehicles', 'Web3']
|