diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2023-02-24 03:53:13 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2023-02-24 03:53:13 -0600 |
commit | a609b1cb2b43fd17e03efa62314f679b47ae6cb5 (patch) | |
tree | 2c495cecb477e01766343fbdae2e8c7c84fc63db /tests/test_yaml_parser.py | |
parent | 28c2ae9102d4204b3f0a79419eec1e72dbbc529a (diff) |
add utils tests, small refactor
Diffstat (limited to 'tests/test_yaml_parser.py')
-rw-r--r-- | tests/test_yaml_parser.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |