Skip to content

Commit

Permalink
test: move test data to different folder
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Feb 7, 2023
1 parent 3b2b775 commit 1f9402f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions row_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand All @@ -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())

Expand All @@ -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())

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 1f9402f

Please sign in to comment.