#NEWLINE# @ pytest . fixture #NEWLINE# def runner( request , mocker ) : #NEWLINE# #INDENT# "\n    Instance of `click.testing.CliRunner`. Can be configured with `@pytest.mark.runner_setup`\n    @pytest.mark.runner_setup(charset='cp1251')\n    def test_something(cli_runner):\n        ...\n    " #NEWLINE# from click.testing import CliRunner #NEWLINE# mocker . patch ( 'passpie.cli.create_keys' , helpers . create_keys ) #NEWLINE# mocker . patch ( 'passpie.cli.ensure_dependencies' ) #NEWLINE# mocker . patch ( 'passpie.database.Repository' ) #NEWLINE# init_kwargs = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# marker = request . node . get_marker ( 'runner_setup' ) #NEWLINE# if marker : #NEWLINE# #INDENT# init_kwargs = marker . kwargs #NEWLINE# #UNINDENT# return CliRunner ( ** init_kwargs )