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:
Micah Jerome Ellison 2023-03-28 09:02:23 -07:00
parent 1a67c8c0ed
commit 0da0b7428f
4 changed files with 18 additions and 16 deletions

View file

@ -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