Skip to content

Commit

Permalink
Fix - Merge conflicts resolvode on extract_structure_single
Browse files Browse the repository at this point in the history
  • Loading branch information
Lary15 committed Oct 26, 2021
1 parent 474749e commit 0baf218
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.

This file was deleted.

15 changes: 0 additions & 15 deletions tests/test_extract_pure_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ def test_pure_extract_text_json_false_saves_txt_file():


def test_pure_extract_structure_single():
<<<<<<< HEAD
file = ""+os.path.dirname(__file__)+"/support/dodfminer_sf.pdf"
json_file = file.replace("pdf", "json")

Expand All @@ -86,20 +85,6 @@ def test_pure_extract_structure():

assert 'SECAO I' in ContentExtractor.extract_structure(file).keys()
assert 'PODER EXECUTIVO' in ContentExtractor.extract_structure(file)['SECAO I'].keys()
=======
file_pdf_path = ""+os.path.dirname(__file__)+"/support/dodfminer_sf.pdf"
ContentExtractor.extract_structure(file_pdf_path, single=True)
assert os.path.isfile(file_pdf_path.replace("pdf", "json"))
with open(file_pdf_path.replace("pdf", "json"), encoding='utf-8') as json_file:
assert 'PODER EXECUTIVO' in json.loads(json_file.read()).keys()
os.remove(file_pdf_path.replace("pdf", "json"))


def test_pure_extract_structure():
file_pdf_path = ""+os.path.dirname(__file__)+"/support/dodfminer_sf.pdf"
assert ContentExtractor.extract_structure(
file_pdf_path).get('PODER EXECUTIVO') is not None
>>>>>>> origin/main


def test_pure_extract_to_txt():
Expand Down

0 comments on commit 0baf218

Please sign in to comment.