From a512fd947acca1edd20584f4b357edb190d97426 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Tue, 6 Jul 2021 11:31:12 -0400 Subject: [PATCH] Tests: Return Path object from patched_home_env() fixture --- monkey/tests/unit_tests/conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monkey/tests/unit_tests/conftest.py b/monkey/tests/unit_tests/conftest.py index a779d65fd..c57cfa6f3 100644 --- a/monkey/tests/unit_tests/conftest.py +++ b/monkey/tests/unit_tests/conftest.py @@ -2,7 +2,7 @@ import pytest @pytest.fixture -def patched_home_env(monkeypatch, tmpdir): - monkeypatch.setenv("HOME", str(tmpdir)) +def patched_home_env(monkeypatch, tmp_path): + monkeypatch.setenv("HOME", tmp_path) - return tmpdir + return tmp_path