separating skipped from test end and adding interrupt API

no problem.
The name didnt sit well for me too
On 7 בדצמ 2014 22:13, "Rotem Yaari" <notifications@github.com> wrote:

> In flask_app/api.py:
>
> > @@ -94,6 +94,30 @@ def report_test_end(id, duration=None, skipped=False):
> >  @api_func
> >  @auto_commit
> >  @takes_schema_args(id=int)
> > +def mark_skipped_test(id):
> > +    update = {'skipped': True}
> > +    if not Test.query.filter(Test.id == id).update(update):
> > +        if Test.query.filter(Test.id == id).count():
> > +            # we have a test, but it already ended
> > +            abort(requests.codes.conflict)
> > +        else:
> > +            abort(requests.codes.not_found)
> > +
> > +@api_func
> > +@auto_commit
> > +@takes_schema_args(id=int)
> > +def mark_interrupted_test(id):
>
> Can we change to report_test_interrupted?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/vmalloc/backslash/pull/6/files#r21427717>.
>