mirror of
https://github.com/status-im/status-go.git
synced 2025-03-02 15:41:08 +00:00
test_: Code Migration from status-cli-tests cleanup
This commit is contained in:
parent
4a663a08a8
commit
9fa435a46f
@ -10,7 +10,6 @@ class Account:
|
||||
password: str
|
||||
passphrase: str
|
||||
|
||||
# User accounts
|
||||
user_1 = Account(
|
||||
address="0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
|
||||
private_key="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80",
|
||||
@ -24,7 +23,6 @@ user_2 = Account(
|
||||
passphrase="test test test test test test test test test test nest junk"
|
||||
)
|
||||
|
||||
# Paths and URLs
|
||||
PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))
|
||||
STATUS_BACKEND_URL = os.getenv("STATUS_BACKEND_URL", "http://127.0.0.1")
|
||||
API_REQUEST_TIMEOUT = int(os.getenv("API_REQUEST_TIMEOUT", "15"))
|
||||
@ -33,20 +31,17 @@ SOURCE_DIR = os.path.join(PROJECT_ROOT, "cmd/status-backend")
|
||||
DEST_DIR = os.path.join(PROJECT_ROOT, "tests-functional")
|
||||
BINARY_PATH = os.path.join(SOURCE_DIR, "status-backend")
|
||||
|
||||
# Paths relative to project root
|
||||
DATA_DIR = os.path.join(PROJECT_ROOT, "tests-functional/local")
|
||||
LOCAL_DATA_DIR1 = create_unique_data_dir(DATA_DIR, random.randint(1, 100))
|
||||
LOCAL_DATA_DIR2 = create_unique_data_dir(DATA_DIR, random.randint(1, 100))
|
||||
RESOURCES_FOLDER = os.path.join(PROJECT_ROOT, "resources")
|
||||
|
||||
# Account payload default values
|
||||
ACCOUNT_PAYLOAD_DEFAULTS = {
|
||||
"displayName": "user",
|
||||
"password": "test_password",
|
||||
"customizationColor": "primary"
|
||||
}
|
||||
|
||||
# Network emulation commands
|
||||
LATENCY_CMD = "sudo tc qdisc add dev eth0 root netem delay 1s 100ms distribution normal"
|
||||
PACKET_LOSS_CMD = "sudo tc qdisc add dev eth0 root netem loss 50%"
|
||||
LOW_BANDWIDTH_CMD = "sudo tc qdisc add dev eth0 root tbf rate 1kbit burst 1kbit"
|
||||
|
@ -1,3 +1,4 @@
|
||||
deepdiff==5.5.0
|
||||
genson==1.2.2
|
||||
jsonschema==3.2.0
|
||||
pytest==6.2.4
|
||||
|
Loading…
x
Reference in New Issue
Block a user