Skip to content

Commit

Permalink
bugfix - do not run private tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed Feb 17, 2019
1 parent 968f673 commit fa52b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def run_test(filename, network):
]
code = open("tests/{}.py".format(filename), encoding="utf-8").read()
test_names = re.findall('(?<=\ndef)[\s]{1,}[^(]*(?=\([^)]*\)[\s]*:)', code)
test_names = [i.strip() for i in test_names]
test_names = [i.strip() for i in test_names if i.strip()[0] != "_"]
duplicates = set([i for i in test_names if test_names.count(i)>1])
if duplicates:
raise ValueError(
Expand Down

0 comments on commit fa52b88

Please sign in to comment.