From 1f9402f7f57c09edd18fbfe0c2c7f42885287ced Mon Sep 17 00:00:00 2001 From: steveoh Date: Wed, 4 Jan 2023 17:59:08 -0700 Subject: [PATCH] test: move test data to different folder --- row_test.py | 8 ++++---- {test/data => test-data}/invalid.pdf | Bin {test/data => test-data}/multiple_page.pdf | Bin {test/data => test-data}/single_page.PDF | Bin 4 files changed, 4 insertions(+), 4 deletions(-) rename {test/data => test-data}/invalid.pdf (100%) rename {test/data => test-data}/multiple_page.pdf (100%) rename {test/data => test-data}/single_page.PDF (100%) diff --git a/row_test.py b/row_test.py index 11d3196..4b9146e 100644 --- a/row_test.py +++ b/row_test.py @@ -10,11 +10,11 @@ import row -root = Path(__file__).parent +root = Path(__file__).parent / "test-data" def test_convert_pdf_to_pil_single_page_pdf(): - pdf = root / "test" / "data" / "single_page.PDF" + pdf = root / "single_page.PDF" images, count, _ = row.convert_pdf_to_pil(pdf.read_bytes()) @@ -23,7 +23,7 @@ def test_convert_pdf_to_pil_single_page_pdf(): def test_convert_pdf_to_pil_multi_page_pdf(): - pdf = root / "test" / "data" / "multiple_page.pdf" + pdf = root / "multiple_page.pdf" images, count, _ = row.convert_pdf_to_pil(pdf.read_bytes()) @@ -32,7 +32,7 @@ def test_convert_pdf_to_pil_multi_page_pdf(): def test_convert_pdf_to_pil_handles_invalid_pdf(): - pdf = root / "test" / "data" / "invalid.pdf" + pdf = root / "invalid.pdf" images, count, message = row.convert_pdf_to_pil(pdf.read_bytes()) diff --git a/test/data/invalid.pdf b/test-data/invalid.pdf similarity index 100% rename from test/data/invalid.pdf rename to test-data/invalid.pdf diff --git a/test/data/multiple_page.pdf b/test-data/multiple_page.pdf similarity index 100% rename from test/data/multiple_page.pdf rename to test-data/multiple_page.pdf diff --git a/test/data/single_page.PDF b/test-data/single_page.PDF similarity index 100% rename from test/data/single_page.PDF rename to test-data/single_page.PDF