fix update progress test to match new progress schema
"progress" field was renamed to "percentage"
This commit is contained in:
@@ -327,7 +327,7 @@ async def test_update_reading_progress(
|
||||
|
||||
# Update progress
|
||||
progress_data = {
|
||||
"progress": 0.5,
|
||||
"percentage": 0.5,
|
||||
}
|
||||
|
||||
response = await populated_authenticated_client.post(
|
||||
@@ -343,7 +343,7 @@ async def test_update_reading_progress(
|
||||
assert response.status_code == 200
|
||||
|
||||
book = response.json()
|
||||
assert book["progress"]["progress"] == 0.5
|
||||
assert book["progress"]["percentage"] == 0.5
|
||||
|
||||
|
||||
async def test_create_multiple_books_from_directory(
|
||||
|
||||
Reference in New Issue
Block a user