File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22"""Tests for search query cli"""
33import subprocess
4- import sys
54from pathlib import Path
65
76from 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 )
You can’t perform that action at this time.
0 commit comments