Thanks to visit codestin.com
Credit goes to GitHub.com

Skip to content

Test failures with click 8.2.0 #1021

@sarahec

Description

@sarahec

While building 1.0.27 for https://github.com/NixOS/nixpkgs, and using pytest-asyncio 1.1.0 click 8.2.0, multiple tests fail with:

mocker = <pytest_mock.plugin.MockerFixture object at 0x1695834d0>
mock_halo = None

    @pytest.fixture
    def runner_with_error(mocker, mock_halo):
>       return CliRunner(mix_stderr=False)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
E       TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr'

tests/conftest.py:457: TypeError

The affected tests are:

> ERROR tests/test_cli.py::test_seagoat_warns_on_incomplete_accuracy[99] - TypeError: CliRunner.__init__() got an unexpected keyword argument 'mi…
┃        > ERROR tests/test_cli.py::test_seagoat_warns_on_incomplete_accuracy[100] - TypeError: CliRunner.__init__() got an unexpected keyword argument 'm…
┃        > ERROR tests/test_cli.py::test_server_error_handling[File Not Found on Server-500] - TypeError: CliRunner.__init__() got an unexpected keyword a…
┃        > ERROR tests/test_cli.py::test_server_error_handling[Database Connection Failed-503] - TypeError: CliRunner.__init__() got an unexpected keyword…
┃        > ERROR tests/test_cli.py::test_server_does_not_exist_error - TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_std...
┃        > ERROR tests/test_cli.py::test_no_network_to_update - TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_std...
┃        > ERROR tests/test_server.py::test_server_shows_error_when_folder_is_not_a_git_repo - TypeError: CliRunner.__init__() got an unexpected keyword a…

https://click.palletsprojects.com/en/stable/changes/#version-8-2-0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions