Ejemplo n.º 1
0
def test_notes_post_update():
    notebook_id = create_notebook()
    note_id = create(notebook_id)
    assert update(note_id,
                  body="This is an updated note!",
                  tags=['updated_funny', 'updated_kevin'])
    assert delete(note_id)
    assert delete_notebook(notebook_id)
Ejemplo n.º 2
0
def test_notes_get_by_id_http():
    notebook_id = create_notebook()
    note_id = create_note(notebook_id)
    query_by_id_http(notebook_id)
    delete_note(note_id)
    delete_notebook(notebook_id)
Ejemplo n.º 3
0
def test_notebooks_get_by_id_and_tag():
    notebook_id = create_notebook()
    note_id = create_note(notebook_id)
    query_by_id_and_tag(notebook_id, tag="funny")
    delete_note(note_id)
    delete_notebook(notebook_id)
Ejemplo n.º 4
0
def test_notes_post_create_and_delete_http():
    notebook_id = create_notebook()
    note_id = create_http(notebook_id)
    assert delete_http(note_id)
    assert delete_notebook(notebook_id)