diff --git a/tests/lib/given_steps.py b/tests/lib/given_steps.py index 808739fc..b2a651a5 100644 --- a/tests/lib/given_steps.py +++ b/tests/lib/given_steps.py @@ -86,8 +86,7 @@ def we_have_type_of_keyring(keyring_type): @given(parse('we use the config "{config_file}"'), target_fixture="config_path") @given(parse("we use no config"), target_fixture="config_path") -def we_use_the_config(request, temp_dir, working_dir): - config_file = get_fixture(request, "config_file") +def we_use_the_config(request, temp_dir, working_dir, config_file): # Move into temp dir as cwd os.chdir(temp_dir.name) diff --git a/tests/lib/when_steps.py b/tests/lib/when_steps.py index d0eb3c08..5531d67c 100644 --- a/tests/lib/when_steps.py +++ b/tests/lib/when_steps.py @@ -39,6 +39,8 @@ def we_run_jrnl(cli_run, capsys, keyring, request, command, input_method, all_in # fixture injection (pytest-bdd >=6.0) inject_fixture(request, "command", command) + inject_fixture(request, "input_method", input_method) + inject_fixture(request, "all_input", all_input) with ExitStack() as stack: mocks = cli_run["mocks"]