import pytest
from serverapi import ServerApi
from Common import *
from util import json_schema_check

api_url = API_URL
schema = POST_TASK_SCHEMA


# TEST - test post tasks response matches schema
def test_post_tasks():
    client = ServerApi(api_url=API_URL)
    resp = client.post_tasks(assignee=ASSIGNEE,
                             reporter=REPORTER,
                             description=DESCRIPTION,
                             duedate=DUEDATE)
    json_schema_check(resp, schema, expected_status=200)


