From 0674cd647e76adc91515c3389a08b16145cfab59 Mon Sep 17 00:00:00 2001 From: AlphaJack Date: Thu, 21 Mar 2024 23:12:49 +0100 Subject: [PATCH] minor: passing str to sys.path --- tests/test_cli.py | 4 ++-- tests/test_toc.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index e6b7659..a9b77c6 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -32,8 +32,8 @@ # load local module rather than system installed version import sys -project_root = str(Path(__file__).resolve().parent.parent) -sys.path.insert(0, project_root) +project_root = Path(__file__).resolve().parent.parent +sys.path.insert(0, str(project_root)) # module to test from toc.cli import main diff --git a/tests/test_toc.py b/tests/test_toc.py index 3009961..77fde49 100644 --- a/tests/test_toc.py +++ b/tests/test_toc.py @@ -29,8 +29,8 @@ # load local module rather than system installed version import sys -project_root = str(Path(__file__).resolve().parent.parent) -sys.path.insert(0, project_root) +project_root = Path(__file__).resolve().parent.parent +sys.path.insert(0, str(project_root)) # module to test from toc.toc import Toc