From a609b1cb2b43fd17e03efa62314f679b47ae6cb5 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Fri, 24 Feb 2023 03:53:13 -0600 Subject: add utils tests, small refactor --- tests/test_yaml_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_yaml_parser.py') diff --git a/tests/test_yaml_parser.py b/tests/test_yaml_parser.py index dd4c6d4..906c7e6 100644 --- a/tests/test_yaml_parser.py +++ b/tests/test_yaml_parser.py @@ -5,7 +5,7 @@ from pyssg.yaml_parser import get_parsed_yaml # and test the join functionality -def test_yaml_resource_read(simple_yaml:str, test_resource: str) -> None: +def test_yaml_resource_read(simple_yaml: str, test_resource: str) -> None: yaml: list[dict[str, Any]] = get_parsed_yaml(simple_yaml, test_resource) assert len(yaml) == 1 @@ -16,7 +16,7 @@ def test_yaml_path_read(test_dir: str) -> None: assert len(yaml) == 1 -def test_yaml_join(simple_yaml:str, test_resource: str) -> None: +def test_yaml_join(simple_yaml: str, test_resource: str) -> None: yaml: dict[str, Any] = get_parsed_yaml(simple_yaml, test_resource)[0] define_str: str = '$PYSSG_HOME/pyssg/site_example/' assert yaml['define'] == define_str -- cgit v1.2.3-54-g00ecf