1
0
forked from VimPlug/jedi

Add testenv:sith in tox.ini

This commit is contained in:
Takafumi Arakaki
2013-05-24 23:00:43 +02:00
parent 788eeb9bd5
commit a94642b9c0
2 changed files with 9 additions and 0 deletions

View File

@@ -86,6 +86,9 @@ class BaseAttacker(object):
return self.record['data'][recid]
def save_record(self, path):
directory = os.path.dirname(path)
if not os.path.isdir(directory):
os.makedirs(directory)
with open(path, 'w') as f:
json.dump(self.record, f)
@@ -251,6 +254,7 @@ class AttackApp(object):
einfo = sys.exc_info()
pdb = __import__(debugger)
pdb.post_mortem(einfo if debugger == 'pudb' else einfo[2])
sys.exit(1)
def add_parser(self, attacker_class, *args, **kwds):
attacker = attacker_class()

View File

@@ -16,3 +16,8 @@ deps =
commands =
coverage run --source jedi -m py.test
coverage report
[testenv:sith]
deps =
argparse
commands =
{envpython} sith.py --record {envtmpdir}/record.json random {posargs:jedi}