|
15 | 15 |
|
16 | 16 |
|
17 | 17 | @pytest.mark.asyncio |
18 | | -async def test_notes_api_create_and_read(nc_client: NextcloudClient, temporary_note: dict): |
| 18 | +async def test_notes_api_create_and_read( |
| 19 | + nc_client: NextcloudClient, temporary_note: dict |
| 20 | +): |
19 | 21 | """ |
20 | 22 | Tests creating a note via the API (using fixture) and then reading it back. |
21 | 23 | """ |
@@ -73,7 +75,9 @@ async def test_notes_api_update(nc_client: NextcloudClient, temporary_note: dict |
73 | 75 |
|
74 | 76 |
|
75 | 77 | @pytest.mark.asyncio |
76 | | -async def test_notes_api_update_conflict(nc_client: NextcloudClient, temporary_note: dict): |
| 78 | +async def test_notes_api_update_conflict( |
| 79 | + nc_client: NextcloudClient, temporary_note: dict |
| 80 | +): |
77 | 81 | """ |
78 | 82 | Tests that attempting to update with an old etag fails with 412. |
79 | 83 | """ |
@@ -140,7 +144,9 @@ async def test_notes_api_append_content_to_existing_note( |
140 | 144 | append_text = f"Appended content {uuid.uuid4().hex[:8]}" |
141 | 145 |
|
142 | 146 | logger.info(f"Appending content to note ID: {note_id}") |
143 | | - updated_note = await nc_client.notes_append_content(note_id=note_id, content=append_text) |
| 147 | + updated_note = await nc_client.notes_append_content( |
| 148 | + note_id=note_id, content=append_text |
| 149 | + ) |
144 | 150 | logger.info(f"Note after append: {updated_note}") |
145 | 151 |
|
146 | 152 | # Verify the note was updated |
@@ -219,7 +225,9 @@ async def test_notes_api_append_content_multiple_times( |
219 | 225 | logger.info(f"Performing multiple appends to note ID: {note_id}") |
220 | 226 |
|
221 | 227 | # First append |
222 | | - updated_note = await nc_client.notes_append_content(note_id=note_id, content=first_append) |
| 228 | + updated_note = await nc_client.notes_append_content( |
| 229 | + note_id=note_id, content=first_append |
| 230 | + ) |
223 | 231 |
|
224 | 232 | expected_content_after_first = original_content + "\n---\n" + first_append |
225 | 233 | assert updated_note["content"] == expected_content_after_first |
|
0 commit comments