import os from lndmanage import settings settings.CACHING_RETENTION_MINUTES = 0 # constants for testing SLEEP_SEC_AFTER_REBALANCING = 2 # testing base folder test_dir = os.path.dirname(os.path.realpath(__file__)) bin_dir = os.path.join(test_dir, 'bin') graph_definitions_dir = os.path.join(test_dir, 'graph_definitions') test_data_dir = os.path.join(test_dir, 'test_data') # set lndmanage_home path to be in the test_data folder and make sure the # folder exists lndmanage_home = os.path.join(test_data_dir, 'lndmanage') os.makedirs(lndmanage_home, exist_ok=True) test_graphs_paths = { 'star_ring_3_liquid': os.path.join( graph_definitions_dir, 'star_ring_3_liquid.py'), 'star_ring_4_unbalanced': os.path.join( graph_definitions_dir, 'star_ring_4_unbalanced.py'), 'star_ring_4_illiquid': os.path.join( graph_definitions_dir, 'star_ring_4_illiquid.py'), 'empty_graph': os.path.join( graph_definitions_dir, 'empty_graph.py'), }