Пример #1
0
def step_impl(context):
    response = get_todo(context.todo['id'])
    assert 'categories' not in response.json()['todos'][0]
Пример #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']
Пример #3
0
def step_impl(context, todoTitle):
    response = get_todo(context.todo['id'])
    assert len(response.json()['todos'][0]['categories']) == 2
Пример #4
0
def step_impl(context):
    response = get_todo(context.todo['id'])
    assert (response.status_code) == 404
Пример #5
0
def step_impl(context, taskTitle):
    assert len(get_todo(
        context.todo_id).json()['todos'][0]['description']) == 0
Пример #6
0
def step_impl(context, taskTitle, newDescription):
    assert get_todo(
        context.todo_id).json()['todos'][0]['description'] == newDescription
Пример #7
0
def step_impl(context, taskTitle):
    response = get_todo(context.todo['id'])
    assert response.json()['todos'][0]['doneStatus'] == "false"
Пример #8
0
def step_impl(context):
    response = get_todo(context.todo['id'])
    print(response)
    assert response.json()['todos'][0]['doneStatus'] == "true"