From e5836118b61d239bb9c580d3b37372f4e4681483 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 25 Sep 2024 00:24:13 -0700 Subject: [PATCH] Fix test comment --- src/paperless_tesseract/tests/test_parser.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/paperless_tesseract/tests/test_parser.py b/src/paperless_tesseract/tests/test_parser.py index c4e475f01..d90b4ea8d 100644 --- a/src/paperless_tesseract/tests/test_parser.py +++ b/src/paperless_tesseract/tests/test_parser.py @@ -61,10 +61,12 @@ class TestParser(DirectoriesMixin, FileSystemAssertsMixin, TestCase): """ GIVEN: - PDF file with a single page + - PDF file with multiple pages WHEN: - The number of pages is requested THEN: - The method returns 1 as the expected number of pages + - The method returns the correct number of pages (6) """ parser = RasterisedDocumentParser(uuid.uuid4()) pages_count = parser.get_pages_count( @@ -73,14 +75,6 @@ class TestParser(DirectoriesMixin, FileSystemAssertsMixin, TestCase): ) self.assertEqual(pages_count, 1) - """ - GIVEN: - - PDF file with multiple pages - WHEN: - - The number of pages is requested - THEN: - - The method returns the correct number of pages (6) - """ pages_count = parser.get_pages_count( os.path.join(self.SAMPLE_FILES, "multi-page-mixed.pdf"), "application/pdf",