mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-18 14:44:21 +01:00
Updates config file params for testing
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import os
|
||||||
import pytest
|
import pytest
|
||||||
import random
|
import random
|
||||||
import requests
|
import requests
|
||||||
@@ -161,6 +162,7 @@ def generate_dummy_tracker():
|
|||||||
|
|
||||||
|
|
||||||
def get_config():
|
def get_config():
|
||||||
|
data_folder = os.path.expanduser("~/.pisa_btc")
|
||||||
config = {
|
config = {
|
||||||
"BTC_RPC_USER": "username",
|
"BTC_RPC_USER": "username",
|
||||||
"BTC_RPC_PASSWD": "password",
|
"BTC_RPC_PASSWD": "password",
|
||||||
@@ -170,13 +172,12 @@ def get_config():
|
|||||||
"FEED_PROTOCOL": "tcp",
|
"FEED_PROTOCOL": "tcp",
|
||||||
"FEED_ADDR": "127.0.0.1",
|
"FEED_ADDR": "127.0.0.1",
|
||||||
"FEED_PORT": 28332,
|
"FEED_PORT": 28332,
|
||||||
|
"DATA_FOLDER": data_folder,
|
||||||
"MAX_APPOINTMENTS": 100,
|
"MAX_APPOINTMENTS": 100,
|
||||||
"EXPIRY_DELTA": 6,
|
"EXPIRY_DELTA": 6,
|
||||||
"MIN_TO_SELF_DELAY": 20,
|
"MIN_TO_SELF_DELAY": 20,
|
||||||
"SERVER_LOG_FILE": "pisa.log",
|
"SERVER_LOG_FILE": data_folder + "pisa.log",
|
||||||
"PISA_SECRET_KEY": "pisa_sk.der",
|
"PISA_SECRET_KEY": data_folder + "pisa_sk.der",
|
||||||
"CLIENT_LOG_FILE": "pisa.log",
|
|
||||||
"TEST_LOG_FILE": "test.log",
|
|
||||||
"DB_PATH": "appointments",
|
"DB_PATH": "appointments",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user