mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-28 05:26:13 +02:00
Add bdd tests for jrnl installation (#1513)
* Added bdd tests for jrnl installation
This commit is contained in:
parent
23bc0f2c8f
commit
8b955ef002
6 changed files with 95 additions and 1 deletions
|
@ -147,3 +147,10 @@ def parse_output_as_language(cli_run, language_name):
|
|||
assert False, f"Language name {language_name} not recognized"
|
||||
|
||||
return {"lang": language_name, "obj": parsed_output}
|
||||
|
||||
|
||||
@given(parse('the home directory is called "{home_dir}"'))
|
||||
def home_directory(temp_dir, home_dir, monkeypatch):
|
||||
home_path = os.path.join(temp_dir.name, home_dir)
|
||||
monkeypatch.setenv("USERPROFILE", home_path) # for windows
|
||||
monkeypatch.setenv("HOME", home_path) # for *nix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue