tools/bin/mock
2021-11-15 19:13:09 +08:00

14 lines
310 B
Python
Executable File

#!/usr/bin/python
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/../scripts/postman')
import mocking
workDir = os.getcwd()
mock = mocking.Mocking(workDir)
mock.convert()
if len(sys.argv) > 1 and sys.argv[1] == 'run':
os.system('newman run ' + mock.getOutFileName())