Skip to content

Commit

Permalink
test_: Code Migration from status-cli-tests cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
shashankshampi committed Oct 30, 2024
1 parent 92ff5bf commit 38c1d12
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 0 additions & 5 deletions tests-functional/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class Account:
password: str
passphrase: str

# User accounts
user_1 = Account(
address="0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
private_key="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80",
Expand All @@ -24,7 +23,6 @@ class 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"))
Expand All @@ -33,20 +31,17 @@ class Account:
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"
Expand Down
1 change: 1 addition & 0 deletions tests-functional/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
deepdiff==5.5.0
genson==1.2.2
jsonschema==3.2.0
pytest==6.2.4
Expand Down

0 comments on commit 38c1d12

Please sign in to comment.