Skip to content

Commit

Permalink
Fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
ashariyar committed Oct 15, 2022
1 parent 9410361 commit 56c50b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions pdfalyzer/pdfalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,7 @@ def _resolve_indeterminate_nodes(self) -> None:
if node.parent is not None:
log.debug(f"{node} already has parent: {node.parent}")
continue
if node.idnum == 5:
import pdb;pdb.set_trace()

if node.label.startswith(RESOURCES):
self._place_resources_node(node)
continue
Expand Down Expand Up @@ -402,7 +401,6 @@ def _place_resources_node(self, resources_node) -> None:
log.debug(f" Indeterminate {RESOURCES} node {resources_node}")
relationships_labels = set()

#import pdb; pdb.set_trace()
for relationship in resources_node.other_relationships:
other_relationships = [r for r in resources_node.other_relationships if r != relationship]
log.debug(f"Checking resourcees other relationship: {relationship.description()}")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_file_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_file_export(analyzing_malicious_documents_pdf_path, tmp_dir):
rendered_files = files_in_dir(tmp_dir)
assert len(rendered_files) == 7
file_sizes = sorted([path.getsize(f) for f in rendered_files])
assert_array_is_close(file_sizes, [3193, 8724, 35908, 86645, 181688, 1465273, 6948612])
assert_array_is_close(file_sizes, [3193, 7456, 35908, 86645, 181688, 1465273, 6948612])

for file in rendered_files:
remove(file)
Expand Down

0 comments on commit 56c50b9

Please sign in to comment.