test_performence.py 647 B

123456789101112131415161718192021222324252627282930313233343536
  1. """
  2. test performance
  3. """
  4. import os
  5. import shutil
  6. import json
  7. from lib import calculate_score
  8. import pytest
  9. from conf import conf
  10. code_path = os.environ.get('GITHUB_WORKSPACE')
  11. pdf_dev_path = conf.conf["pdf_dev_path"]
  12. pdf_res_path = conf.conf["pdf_res_path"]
  13. class TestTable():
  14. """
  15. test table
  16. """
  17. def test_perf_close_table(self):
  18. """
  19. test perf when close table
  20. """
  21. def get_score():
  22. """
  23. get score
  24. """
  25. score = calculate_score.Scoring(os.path.join(pdf_dev_path, "result.json"))
  26. score.calculate_similarity_total("mineru", pdf_dev_path)
  27. res = score.summary_scores()
  28. return res