Example #1
0
def step_impl(context):
    response = get_todo(context.todo['id'])
    assert 'categories' not in response.json()['todos'][0]
Example #2
0
def step_impl(context, todoTitle, priorityLevel):
    response = get_todo(context.todo['id'])
    assert response.json(
    )['todos'][0]['categories'][0]['id'] == context.category['id']
Example #3
0
def step_impl(context, todoTitle):
    response = get_todo(context.todo['id'])
    assert len(response.json()['todos'][0]['categories']) == 2
Example #4
0
def step_impl(context):
    response = get_todo(context.todo['id'])
    assert (response.status_code) == 404
Example #5
0
def step_impl(context, taskTitle):
    assert len(get_todo(
        context.todo_id).json()['todos'][0]['description']) == 0
Example #6
0
def step_impl(context, taskTitle, newDescription):
    assert get_todo(
        context.todo_id).json()['todos'][0]['description'] == newDescription
Example #7
0
def step_impl(context, taskTitle):
    response = get_todo(context.todo['id'])
    assert response.json()['todos'][0]['doneStatus'] == "false"
Example #8
0
def step_impl(context):
    response = get_todo(context.todo['id'])
    print(response)
    assert response.json()['todos'][0]['doneStatus'] == "true"