mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-02 06:56:12 +02:00
poe format
This commit is contained in:
parent
0da0b7428f
commit
30a94d6233
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ def test_read_template_file_with_valid_file_returns_text(mock_file):
|
|||
|
||||
|
||||
def test_get_template_path_when_exists_returns_correct_path():
|
||||
with patch("os.path.exists", return_value = True):
|
||||
with patch("os.path.exists", return_value=True):
|
||||
output = get_template_path("template", "templatepath")
|
||||
|
||||
assert output == os.path.join("templatepath", "template")
|
||||
|
@ -33,7 +33,7 @@ def test_get_template_path_when_exists_returns_correct_path():
|
|||
|
||||
@patch("jrnl.editor.absolute_path")
|
||||
def test_get_template_path_when_doesnt_exist_returns_correct_path(mock_absolute_paths):
|
||||
with patch("os.path.exists", return_value = False):
|
||||
with patch("os.path.exists", return_value=False):
|
||||
output = get_template_path("template", "templatepath")
|
||||
|
||||
assert output == mock_absolute_paths.return_value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue