fixed get_lan_ips test

master
Kevin Froman 2020-04-03 03:33:05 -05:00
parent 8804c13225
commit 46ce27cbe8
1 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,12 @@ TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
print("Test directory:", TEST_DIR)
os.environ["ONIONR_HOME"] = TEST_DIR
import unittest
from utils import identifyhome, createdirs
from onionrsetup import setup_config
createdirs.create_dirs()
setup_config()
from lan.getip import lan_ips, best_ip