optimize imports

This commit is contained in:
Lei PAN
2022-05-18 16:03:12 +02:00
parent 08a5cc2808
commit 2ed2c6d82e
4 changed files with 12 additions and 4 deletions
+2 -3
View File
@@ -1,9 +1,6 @@
import configparser
import random
import string
from playwright.sync_api import sync_playwright
from db.DbManager import DataManager
from logs.LogSender import LogSender
@@ -14,6 +11,7 @@ oracle_log_sender = LogSender()
PROXY_SERVER = "http://gw.ntnt.io:5959"
PROXY_PASSWORD = "94sY7zwBG13i"
def get_random_id_number_for_proxy() -> str:
S = 8 # number of characters in the string.
ran = ''.join(random.choices(string.digits, k=S))
@@ -21,6 +19,7 @@ def get_random_id_number_for_proxy() -> str:
print("The randomly generated string is : " + str(ran)) # print the random data
return id_number
DEVICES = ['iPad (gen 6)', 'iPad (gen 6) landscape', 'iPad (gen 7)', 'iPad (gen 7) landscape', 'iPad Mini',
'iPad Mini landscape', 'iPad Pro 11', 'iPad Pro 11 landscape', 'iPhone 6', 'iPhone 6 landscape',
'iPhone 6 Plus', 'iPhone 6 Plus landscape', 'iPhone 7', 'iPhone 7 landscape', 'iPhone 7 Plus',