1 --- a/tests/cli/conf_one.py
2 +++ b/tests/cli/conf_one.py
7 - "api_path": "https://zh.wikipedia.org/w/api.php",
8 + "file_path": ["titles.txt"],
11 "output": "titles.txt"
12 --- a/tests/cli/conf_single_generator.py
13 +++ b/tests/cli/conf_single_generator.py
18 - "api_path": "https://zh.wikipedia.org/w/api.php",
19 + "file_path": ["titles.txt"],
22 "output": "titles.txt"
23 --- a/tests/lib/test_zhwiki.py
24 +++ b/tests/lib/test_zhwiki.py
28 def test_pipeline_basic():
29 - pipeline = MWFPipeline("https://zh.wikipedia.org/w/api.php")
30 - pipeline.fetch_titles(title_limit=50)
31 + pipeline = MWFPipeline()
32 + pipeline.load_titles_from_file("titles.txt")
33 pipeline.convert_to_words(moegirl_tweaks)
34 pipeline.export_words()
35 pipeline.generate_dict(generator="rime")
36 --- a/tests/cli/test_conf.py
37 +++ b/tests/cli/test_conf.py
40 from mw2fcitx.main import inner_main
48 - # this should run at least 8 secs = 2 * (5 / 1) - 2
49 - start = time.perf_counter()
50 - inner_main(['-c', 'tests/cli/conf_continue'])
51 - end = time.perf_counter()
52 - assert (end-start > 8)
55 def test_err_no_path():
56 with pytest.raises(SystemExit):
57 inner_main(['-c', 'tests/cli/conf_err_no_path'])