add mock script
This commit is contained in:
parent
4ce83a4421
commit
c2c4023d1e
11
bin/mock
Executable file
11
bin/mock
Executable file
@ -0,0 +1,11 @@
|
||||
#!/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()
|
0
scripts/postman/__init__.py
Normal file
0
scripts/postman/__init__.py
Normal file
11
scripts/postman/mocking.py
Normal file
11
scripts/postman/mocking.py
Normal file
@ -0,0 +1,11 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import json
|
||||
|
||||
class Mocking(object):
|
||||
|
||||
def __init__(self, workDir):
|
||||
self._workDir = workDir + '/mocking/'
|
||||
|
||||
def convert(self):
|
||||
self._env = json.loads(open(self._workDir + 'env.json', 'r').read())
|
Loading…
x
Reference in New Issue
Block a user