Skip to content

Commit 9e0ebc1

Browse files
author
Gerit Wagner
committed
update cli tests
1 parent 6a8e69e commit 9e0ebc1

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

test/test_cli.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env python
22
"""Tests for search query cli"""
33
import subprocess
4-
import sys
54
from pathlib import Path
65

76
from search_query import load_search_file
@@ -17,9 +16,7 @@ def test_translate_cli() -> None:
1716

1817
result = subprocess.run(
1918
[
20-
sys.executable,
21-
"-m",
22-
"search_query.cli",
19+
"search-query",
2320
"translate",
2421
f"--input={input_file}",
2522
"--to=ebscohost",
@@ -47,13 +44,7 @@ def test_linter_cli() -> None:
4744
input_file = test_data_dir / "search_history_file_2_linter.json"
4845

4946
result = subprocess.run(
50-
[
51-
sys.executable,
52-
"-m",
53-
"search_query.cli",
54-
"lint",
55-
f"{input_file}",
56-
],
47+
["search-query", "lint", f"{input_file}"],
5748
capture_output=True,
5849
text=True,
5950
)

0 commit comments

Comments
 (0)