From a19c944b6e6dc8473b249145a681443402c5d68c Mon Sep 17 00:00:00 2001 From: patrick Date: Sat, 7 Mar 2026 11:35:30 -0500 Subject: [PATCH] Fix hardcoded absolute paths in book upload tests The Darwin epub test cases used absolute paths. I hadn't notices until switching machines, whcih caused errors in the test harness. Changed to relative paths to be consistent with other test cases. --- backend/tests/integration/test_book.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/tests/integration/test_book.py b/backend/tests/integration/test_book.py index 752d337..71a5073 100644 --- a/backend/tests/integration/test_book.py +++ b/backend/tests/integration/test_book.py @@ -28,7 +28,7 @@ from pathlib import Path ), ( Path( - "/home/patrick/projects/chitai-api/tests/data_files/On The Origin of Species By Means of Natural Selection - Charles Darwin.epub" + "tests/data_files/On The Origin of Species By Means of Natural Selection - Charles Darwin.epub" ), 2, "On the Origin of Species By Means of Natural Selection / Or, the Preservation of Favoured Races in the Struggle for Life", @@ -107,7 +107,7 @@ async def test_upload_book_without_data( ), ( Path( - "/home/patrick/projects/chitai-api/tests/data_files/On The Origin of Species By Means of Natural Selection - Charles Darwin.epub" + "tests/data_files/On The Origin of Species By Means of Natural Selection - Charles Darwin.epub" ), 2, "On the Origin of Species By Means of Natural Selection",