Skip to content

Commit

Permalink
✅ Test updated parameter message
Browse files Browse the repository at this point in the history
  • Loading branch information
paw-lu committed Jan 2, 2022
1 parent 7b95034 commit 88d8af5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/unit/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def test_exit_invalid_file_output(
expected_output = (
"Usage: main [OPTIONS] [FILE]..."
"\nTry 'main --help' for help."
f"\n\nError: Invalid value for FILE: {invalid_path}"
f"\n\nError: Invalid value for 'FILE...': {invalid_path}"
" is not a valid Jupyter Notebook path.\n"
)
assert output == expected_output
Expand Down Expand Up @@ -479,7 +479,7 @@ def test_raise_no_source(
expected_output = (
"Usage: main [OPTIONS] [FILE]..."
"\nTry 'main --help' for help."
"\n\nError: Invalid value for FILE:"
"\n\nError: Invalid value for 'FILE...':"
f" {notebook_path} is not a valid Jupyter Notebook path.\n"
)
assert output == expected_output
Expand All @@ -499,7 +499,7 @@ def test_raise_no_output(
expected_output = (
"Usage: main [OPTIONS] [FILE]...\nTry 'main -"
"-help' for help.\n\nError: Invalid value f"
f"or FILE: {notebook_path} is not a v"
f"or 'FILE...': {notebook_path} is not a v"
"alid Jupyter Notebook path.\n"
)
assert output == expected_output
Expand Down Expand Up @@ -758,8 +758,8 @@ def test_message_failed_terminedia_import(cli_arg: Callable[..., str]) -> None:
expected_output = (
"Usage: main [OPTIONS] [FILE]..."
"\nTry 'main --help' for help."
"\n\nError: Invalid value for image-drawing:"
" --image-drawing='block' cannot be used on this system."
"\n\nError: Invalid value for '--image-drawing' / '--id':"
" 'block' cannot be used on this system."
" This might be because it is being run on Windows.\n"
)
assert output == expected_output
Expand Down Expand Up @@ -1311,7 +1311,7 @@ def test_multiple_files_all_fail_message(
expected_output = (
"Usage: main [OPTIONS] [FILE]...\nTry 'mai"
"n --help' for help.\n\nError: Invalid valu"
f"e for FILE: {invalid_path}, {invalid_path}"
f"e for 'FILE...': {invalid_path}, {invalid_path}"
" are not a valid Jupyter Notebook paths.\n"
)
assert output == expected_output
Expand Down

0 comments on commit 88d8af5

Please sign in to comment.