Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dronperminov committed Aug 21, 2023
1 parent 92d5998 commit 5f931ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/api_tests/test_api_format_pdf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import os

from dedoc.data_structures import BBoxAnnotation

from dedoc.data_structures.concrete_annotations.bold_annotation import BoldAnnotation
from dedoc.data_structures.concrete_annotations.confidence_annotation import ConfidenceAnnotation
from dedoc.data_structures.concrete_annotations.spacing_annotation import SpacingAnnotation
Expand All @@ -20,6 +22,7 @@ def __check_example_file(self, result: dict) -> None:
self.assertIn(BoldAnnotation.name, annotation_names)
self.assertIn(SpacingAnnotation.name, annotation_names)
self.assertIn(ConfidenceAnnotation.name, annotation_names)
self.assertIn(BBoxAnnotation.name, annotation_names)
self._check_similarity("1.2.1 Поясним за непонятное", content[3]["subparagraphs"][0]["text"])

def __check_metainfo(self, metainfo: dict, actual_type: str, actual_name: str) -> None:
Expand Down

0 comments on commit 5f931ef

Please sign in to comment.