fix some more tests

This commit is contained in:
Jonathan Wren 2023-02-04 11:39:39 -08:00
parent a468510bcc
commit d764914b54
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View file

@ -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 the config "{config_file}"'), target_fixture="config_path")
@given(parse("we use no config"), target_fixture="config_path") @given(parse("we use no config"), target_fixture="config_path")
def we_use_the_config(request, temp_dir, working_dir): def we_use_the_config(request, temp_dir, working_dir, config_file):
config_file = get_fixture(request, "config_file")
# Move into temp dir as cwd # Move into temp dir as cwd
os.chdir(temp_dir.name) os.chdir(temp_dir.name)

View file

@ -39,6 +39,8 @@ def we_run_jrnl(cli_run, capsys, keyring, request, command, input_method, all_in
# fixture injection (pytest-bdd >=6.0) # fixture injection (pytest-bdd >=6.0)
inject_fixture(request, "command", command) inject_fixture(request, "command", command)
inject_fixture(request, "input_method", input_method)
inject_fixture(request, "all_input", all_input)
with ExitStack() as stack: with ExitStack() as stack:
mocks = cli_run["mocks"] mocks = cli_run["mocks"]