Fix test comment

This commit is contained in:
shamoon 2024-09-25 00:24:13 -07:00
parent acec8e35fa
commit e5836118b6

View File

@ -61,10 +61,12 @@ class TestParser(DirectoriesMixin, FileSystemAssertsMixin, TestCase):
""" """
GIVEN: GIVEN:
- PDF file with a single page - PDF file with a single page
- PDF file with multiple pages
WHEN: WHEN:
- The number of pages is requested - The number of pages is requested
THEN: THEN:
- The method returns 1 as the expected number of pages - The method returns 1 as the expected number of pages
- The method returns the correct number of pages (6)
""" """
parser = RasterisedDocumentParser(uuid.uuid4()) parser = RasterisedDocumentParser(uuid.uuid4())
pages_count = parser.get_pages_count( pages_count = parser.get_pages_count(
@ -73,14 +75,6 @@ class TestParser(DirectoriesMixin, FileSystemAssertsMixin, TestCase):
) )
self.assertEqual(pages_count, 1) 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( pages_count = parser.get_pages_count(
os.path.join(self.SAMPLE_FILES, "multi-page-mixed.pdf"), os.path.join(self.SAMPLE_FILES, "multi-page-mixed.pdf"),
"application/pdf", "application/pdf",