+ added more tests
* fixed chdir home bug * fixed some tests creating normal data dir
This commit is contained in:
parent
665cb0c732
commit
60d2ebfaed
20 changed files with 139 additions and 55 deletions
|
@ -25,7 +25,10 @@ class OnionrTests(unittest.TestCase):
|
|||
def test_export(self):
|
||||
testargs = ["onionr.py", "flowsend", "tests", "hello"]
|
||||
with patch.object(sys, 'argv', testargs):
|
||||
parser.register()
|
||||
try:
|
||||
parser.register()
|
||||
except SystemExit:
|
||||
pass
|
||||
bl = blockmetadb.get_block_list()[0]
|
||||
testargs = ["onionr.py", "export-block", bl]
|
||||
with patch.object(sys, 'argv', testargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue