Skip to content

Commit

Permalink
remove test comparing pdf files
Browse files Browse the repository at this point in the history
  • Loading branch information
Marmare314 committed Sep 29, 2023
1 parent d673580 commit f641ef0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tools/check_readme.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from generate_readme import split_images, combine_markdown, IMAGE_FOLDER, query_to_markdown, README_TEMPLATE_PATH, README_PATH, README_PDF_PATH
from generate_readme import split_images, combine_markdown, IMAGE_FOLDER, query_to_markdown, README_TEMPLATE_PATH, README_PATH
from common import TypstRunner, ToolStatus, compare_files
import os

Expand All @@ -22,10 +22,7 @@ def main():
status.start_action("Compiling " + README_TEMPLATE_PATH)
output_path = runner.tmp_file_path("readme.pdf")
runner.compile_file(README_TEMPLATE_PATH, output_path)
if status.check_runner(runner):
status.end_action(compare_files(README_PDF_PATH, output_path))
else:
status.end_action(False)
status.end_action(status.check_runner(runner))

status.start_action("Querying " + README_TEMPLATE_PATH)
query_result, query_success = runner.query_file(README_TEMPLATE_PATH, "<export>")
Expand Down

0 comments on commit f641ef0

Please sign in to comment.