From f2ab2bac6b26f82730d5f5d7ab1e6d5f2f1060e3 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Sun, 19 Feb 2023 23:36:04 -0600 Subject: add yaml_parser tests, small refactor --- tests/conftest.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/conftest.py') diff --git a/tests/conftest.py b/tests/conftest.py index 58416ea..1beffc6 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,3 +1,4 @@ +import os import sys from typing import Callable import pytest @@ -7,6 +8,11 @@ from pyssg.arg_parser import get_parser from pyssg.custom_logger import setup_logger +@pytest.fixture +def test_dir(): + return os.path.dirname(os.path.abspath(__file__)) + + @pytest.fixture(scope='session') def arg_parser(): return get_parser() -- cgit v1.2.3-54-g00ecf