Skip to content

Commit

Permalink
remove install_libs() and time.time() from test script
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyzz committed Jul 19, 2021
1 parent 436896a commit 3a60e54
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@
import platform
import sqlite3
import sys
import time
import unittest
from itertools import zip_longest

from calibre.library import db
from calibre_plugins.worddumb.database import get_ll_path, get_x_ray_path
from calibre_plugins.worddumb.metadata import check_metadata, get_asin
from calibre_plugins.worddumb.parse_job import do_job
from calibre_plugins.worddumb.unzip import install_libs
from convert import LIMIT


Expand All @@ -30,10 +28,7 @@ def setUpClass(cls):
data = check_metadata(lib_db, book_1984_id)
(_, cls.fmt, cls.asin, cls.book_path, _, _) = data
create_x = False if platform.system() == 'Darwin' else True
install_libs('en_core_web_sm', create_x=create_x)
start_time = time.time()
do_job(data, create_x=create_x)
print(f'{time.time() - start_time} seconds')

def check_db(self, test_json_path, created_db_path, table, sql):
with open(test_json_path) as test_json, \
Expand Down

0 comments on commit 3a60e54

Please sign in to comment.