Fix linter on tests/test_ast_paring.py

pull/682/head
Josselin 4 years ago
parent bc960ae54e
commit 202f5069e4
  1. 8
      tests/test_ast_parsing.py

@ -575,8 +575,12 @@ def _generate_test(test_item: Item, skip_existing=False):
if __name__ == "__main__":
if len(sys.argv) != 2 or sys.argv[1] not in ["--generate", "--overwrite"]:
print("To generate the missing json artifacts run\n\tpython tests/test_ast_parsing.py --generate")
print("To re-generate all the json artifacts run\n\tpython tests/test_ast_parsing.py --overwrite")
print(
"To generate the missing json artifacts run\n\tpython tests/test_ast_parsing.py --generate"
)
print(
"To re-generate all the json artifacts run\n\tpython tests/test_ast_parsing.py --overwrite"
)
print("\tThis will overwrite the previous json files")
elif sys.argv[1] == "--generate":
for next_test in ALL_TESTS:

Loading…
Cancel
Save