def test_update(): conn = connect() store = NoteStore(conn) note = Note(None, 'title', 'content') store.create(note) note.title = "Better Title" note.content = "Better Content" store.update(note) from_db = store.fetch(note.note_id) assert from_db.title == "Better Title" assert from_db.content == "Better Content"