summaryrefslogtreecommitdiff
path: root/tests/test_yaml_parser.py
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2023-08-21 23:45:14 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2023-08-21 23:45:14 -0600
commitffe145a6c67afed6fb68326edbc91cbd94a3f846 (patch)
tree8eb6f354beff2c35d1f823cf058f3fd4c74b49d0 /tests/test_yaml_parser.py
parent5c3b2c158180aa47003c5e82857594afd0c2bd7b (diff)
feat: fuck it, delete tests
Diffstat (limited to 'tests/test_yaml_parser.py')
-rw-r--r--tests/test_yaml_parser.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/test_yaml_parser.py b/tests/test_yaml_parser.py
deleted file mode 100644
index 0d8df96..0000000
--- a/tests/test_yaml_parser.py
+++ /dev/null
@@ -1,23 +0,0 @@
-from typing import Any
-from pyssg.yaml_parser import get_parsed_yaml
-
-# the point of these tests is just to read yaml files
-# and test the join functionality
-
-
-def test_yaml_resource_read(default_yaml: str, config_resource: str) -> None:
- yaml: list[dict[str, Any]] = get_parsed_yaml(default_yaml, config_resource)
- assert len(yaml) == 1
-
-
-def test_yaml_path_read(sample_files_path: str, default_yaml: str) -> None:
- yaml_path: str = f'{sample_files_path}/config/{default_yaml}'
- yaml: list[dict[str, Any]] = get_parsed_yaml(yaml_path)
- assert len(yaml) == 1
-
-
-def test_yaml_join(default_yaml: str, config_resource: str) -> None:
- yaml: dict[str, Any] = get_parsed_yaml(default_yaml, config_resource)[0]
- define_str: str = '$PYSSG_HOME/pyssg/site_example/'
- assert yaml['define'] == define_str
- assert yaml['path']['src'] == f'{define_str}src'