mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-12 17:38:32 +02:00
fix some more tests
This commit is contained in:
parent
a468510bcc
commit
d764914b54
2 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||||
|
|
|
@ -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"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue