2
0
Fork
You've already forked python-clickclick
1

Test not passing on python 3.10 #2

Open
opened 2023年04月17日 17:27:50 +02:00 by kudlatyamroth · 0 comments

failed test info:

__________________________________________________________________________ test_cli __________________________________________________________________________
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fce304aa470>
 def test_cli(monkeypatch):
 runner = CliRunner()
 result = runner.invoke(cli, ['l'])
 assert 'Error: Too many matches: last, list' in result.output
 
 runner = CliRunner()
 result = runner.invoke(cli, ['li'])
 assert 'list\n' == result.output
 
 runner = CliRunner()
 result = runner.invoke(cli, ['last'])
 assert 'last\n' == result.output
 
 runner = CliRunner()
 result = runner.invoke(cli, ["notexists"])
> assert 'Error: No such command "notexists"' in result.output
E assert 'Error: No such command "notexists"' in "Usage: cli [OPTIONS] COMMAND [ARGS]...\nTry 'cli --help' for help.\n\nError: No such command 'notexists'.\n"
E + where "Usage: cli [OPTIONS] COMMAND [ARGS]...\nTry 'cli --help' for help.\n\nError: No such command 'notexists'.\n" = <Result SystemExit(2)>.output
tests/test_console.py:207: AssertionError
================================================================== short test summary info ===================================================================
FAILED tests/test_console.py::test_cli - assert 'Error: No such command "notexists"' in "Usage: cli [OPTIONS] COMMAND [ARGS]...\nTry 'cli --help' for help.\n\nError: No such command 'notexists'.\n"
failed test info: ``` __________________________________________________________________________ test_cli __________________________________________________________________________ monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fce304aa470> def test_cli(monkeypatch): runner = CliRunner() result = runner.invoke(cli, ['l']) assert 'Error: Too many matches: last, list' in result.output runner = CliRunner() result = runner.invoke(cli, ['li']) assert 'list\n' == result.output runner = CliRunner() result = runner.invoke(cli, ['last']) assert 'last\n' == result.output runner = CliRunner() result = runner.invoke(cli, ["notexists"]) > assert 'Error: No such command "notexists"' in result.output E assert 'Error: No such command "notexists"' in "Usage: cli [OPTIONS] COMMAND [ARGS]...\nTry 'cli --help' for help.\n\nError: No such command 'notexists'.\n" E + where "Usage: cli [OPTIONS] COMMAND [ARGS]...\nTry 'cli --help' for help.\n\nError: No such command 'notexists'.\n" = <Result SystemExit(2)>.output tests/test_console.py:207: AssertionError ================================================================== short test summary info =================================================================== FAILED tests/test_console.py::test_cli - assert 'Error: No such command "notexists"' in "Usage: cli [OPTIONS] COMMAND [ARGS]...\nTry 'cli --help' for help.\n\nError: No such command 'notexists'.\n" ```
Sign in to join this conversation.
No Branch/Tag specified
main
TyCVfTaR34FzPSmF
20.10.2
20.10.1
20.10.0
1.2.2
1.2.1
1.2
1.1
1.0
0.15
0.14
0.13
0.12
0.11
0.10
0.9
0.8
0.7
0.6
0.3
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hjacobs/python-clickclick#2
Reference in a new issue
hjacobs/python-clickclick
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?