github.com/status-im/status-go@v1.1.0/integration-tests/conftest.py (about)

     1  import os
     2  from dataclasses import dataclass
     3  
     4  
     5  def pytest_addoption(parser):
     6      parser.addoption(
     7          "--rpc_url",
     8          action="store",
     9          help="",
    10          default="http://0.0.0.0:3333",
    11      )
    12      parser.addoption(
    13          "--rpc_url_2",
    14          action="store",
    15          help="",
    16          default="http://0.0.0.0:3334",
    17      )
    18      parser.addoption(
    19          "--ws_url",
    20          action="store",
    21          help="",
    22          default="ws://0.0.0.0:8354",
    23      )
    24      parser.addoption(
    25          "--password",
    26          action="store",
    27          help="",
    28          default="Strong12345",
    29      )
    30  
    31  @dataclass
    32  class Account():
    33      
    34      address: str
    35      private_key: str
    36  
    37  user_1 = Account(
    38      address="0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
    39      private_key="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80",
    40  )
    41  user_2 = Account(
    42      address="0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
    43      private_key="0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d",
    44  )
    45  
    46  @dataclass
    47  class Option:
    48      pass
    49  
    50  option = Option()
    51  
    52  def pytest_configure(config):
    53      global option
    54      option = config.option
    55      option.base_dir = os.path.dirname(os.path.abspath(__file__))