mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-12 09:56:14 +02:00
Use path strings instead of Path objects in return values to prevent side effects that caused unit tests to fail on some platforms
This commit is contained in:
parent
1a67c8c0ed
commit
0da0b7428f
4 changed files with 18 additions and 16 deletions
|
@ -183,7 +183,7 @@ def mock_default_journal_path(temp_dir):
|
|||
|
||||
@fixture
|
||||
def mock_default_templates_path(temp_dir):
|
||||
templates_path = Path(temp_dir.name, "templates")
|
||||
templates_path = os.path.join(temp_dir.name, "templates")
|
||||
return {
|
||||
"get_templates_path": lambda: patch(
|
||||
"jrnl.editor.get_templates_path", return_value=templates_path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue