Skip to content

Commit 81bd274

Browse files
committed
update tests
1 parent fc64cd3 commit 81bd274

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎test.bash‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ set -ex
66

77
trap "echo -e '\x1b[01;31mFailed\x1b[0m'" ERR
88

9-
echo 'This is okay.' | language_tool_python -
10-
! echo 'This is noot okay.' | language_tool_python -
9+
echo 'This is okay.' | python -m language_tool_python -
10+
! echo 'This is noot okay.' | python -m language_tool_python -
1111

1212
echo 'This is okay.' | python -m language_tool_python -
1313
! echo 'This is noot okay.' | python -m language_tool_python -

‎test_remote.bash‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -eux
55
readonly port=8081
66

77
# TODO: Find this more portably.
8-
readonly jar='./build/lib/language_tool_python/LanguageTool-3.1/languagetool-server.jar'
8+
readonly jar='./language_tool_python/LanguageTool-*/languagetool-server.jar'
99

1010
java -cp "$jar" org.languagetool.server.HTTPServer --port "$port" &
1111
java_pid=$!
@@ -17,7 +17,7 @@ clean ()
1717
trap clean EXIT
1818

1919
echo 'This is okay.' | \
20-
language_tool_python --remote-host localhost --remote-port "$port" -
20+
python -m language_tool_python --remote-host localhost --remote-port "$port" -
2121

2222
! echo 'This is noot okay.' | \
23-
language_tool_python --remote-host localhost --remote-port "$port" -
23+
python -m language_tool_python --remote-host localhost --remote-port "$port" -

0 commit comments

Comments
 (0)