Commit b584e777 authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

added clean

parent 78f7ff1a
......@@ -11,6 +11,7 @@ def main():
v = Models()()
r = random.choice(v)
except Exception as error:
print error
......@@ -20,7 +20,10 @@ class Runner(object):
def onError(error, errarea):
raise ValueError(error, errarea)
def clean(self):
requests.get('/'.join([self.url, "status", "clean"]), data=None, json = None, auth=HTTPBasicAuth(self.usr, self.pwd))
def __call__(self, jdata, name, timeperiod, output, timeout):
# create
rCreate ='/'.join([self.url, "workarea", "v2"]), data=None, json = None, auth=HTTPBasicAuth(self.usr, self.pwd))
......@@ -84,7 +87,8 @@ class Model(Runner):
self.jdata = json.load(file)
def __call__(self, timeperiod = None, output = 'run', timeout = 30):
super(Model, self).__call__(self.jdata,, timeperiod, output, timeout)
def clean(self):
class Models(object):
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment