|
1 | 1 | import json
|
2 | 2 | import logging
|
3 |
| -import string |
| 3 | +import os |
4 | 4 | import tempfile
|
5 | 5 | import time
|
6 |
| -import random |
7 | 6 | import uuid
|
8 |
| -import requests |
9 |
| -import os |
10 | 7 |
|
| 8 | +import requests |
11 | 9 | from tenacity import retry, stop_after_delay, wait_fixed
|
12 | 10 |
|
13 | 11 | import resources.constants as constants
|
14 |
| -from clients.services.wallet import WalletService |
15 |
| -from clients.services.wakuext import WakuextService, PushNotificationRegistrationTokenType |
| 12 | +from clients.api import ApiClient |
| 13 | +from clients.expvar import ExpvarClient |
| 14 | +from clients.metrics import Events, StatusGoMetrics |
| 15 | +from clients.rpc import RpcClient |
16 | 16 | from clients.services.accounts import AccountService
|
17 |
| -from clients.services.settings import SettingsService |
18 | 17 | from clients.services.connector import ConnectorService
|
| 18 | +from clients.services.settings import SettingsService |
| 19 | +from clients.services.wakuext import ( |
| 20 | + WakuextService, |
| 21 | + PushNotificationRegistrationTokenType, |
| 22 | +) |
| 23 | +from clients.services.wallet import WalletService |
19 | 24 | from clients.signals import SignalClient, SignalType
|
20 |
| -from clients.rpc import RpcClient |
21 |
| -from clients.api import ApiClient |
22 |
| -from clients.metrics import Events, StatusGoMetrics |
23 |
| -from clients.expvar import ExpvarClient |
24 | 25 | from clients.statusgo_container import StatusBackendContainer
|
25 |
| -from utils.config import Config |
26 | 26 | from resources.constants import USE_IPV6, user_1, ANVIL_NETWORK_ID, Account
|
| 27 | +from utils import fake |
27 | 28 | from utils import keys
|
| 29 | +from utils.config import Config |
28 | 30 |
|
29 | 31 | NANOSECONDS_PER_SECOND = 1_000_000_000
|
30 | 32 |
|
@@ -234,10 +236,7 @@ def import_data(self, src_path: str, dest_path: str):
|
234 | 236 | dst.write(src.read())
|
235 | 237 |
|
236 | 238 | def _set_display_name(self, **kwargs):
|
237 |
| - self.display_name = kwargs.get( |
238 |
| - "display_name", |
239 |
| - f"DISP_NAME_{''.join(random.choices(string.ascii_letters + string.digits + '_-', k=10))}", |
240 |
| - ) |
| 239 | + self.display_name = kwargs.get("display_name", fake.profile_name()) |
241 | 240 |
|
242 | 241 | def _create_account_request(self, user, **kwargs):
|
243 | 242 | self.password = kwargs.get("password", user.password)
|
|
0 commit comments