added toggle bootstrap command

master
Kevin Froman 2019-12-29 11:33:47 -06:00
parent e9f0e60608
commit 34b1abddb7
1 changed files with 3 additions and 1 deletions

View File

@ -3,11 +3,13 @@ import sys, os
sys.path.append(".") sys.path.append(".")
sys.path.append("src/") sys.path.append("src/")
import unittest, uuid import unittest, uuid
import config
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/' TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
print("Test directory:", TEST_DIR) print("Test directory:", TEST_DIR)
os.environ["ONIONR_HOME"] = TEST_DIR os.environ["ONIONR_HOME"] = TEST_DIR
from onionrcommands import parser from onionrcommands import parser
from onionrsetup import setup_config
setup_config()
import config
class TestToggleBootstrap(unittest.TestCase): class TestToggleBootstrap(unittest.TestCase):
def test_toggle_bootstrap(self): def test_toggle_bootstrap(self):
testargs = ["onionr.py", "togglebootstrap"] testargs = ["onionr.py", "togglebootstrap"]