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/io_files | |
parent | 28c2ae9102d4204b3f0a79419eec1e72dbbc529a (diff) |
add utils tests, small refactor
Diffstat (limited to 'tests/io_files')
-rw-r--r-- | tests/io_files/multiple.yaml | 55 | ||||
-rw-r--r-- | tests/io_files/multiple_one_doc_error.yaml | 48 |
2 files changed, 103 insertions, 0 deletions
diff --git a/tests/io_files/multiple.yaml b/tests/io_files/multiple.yaml new file mode 100644 index 0000000..8d99c40 --- /dev/null +++ b/tests/io_files/multiple.yaml @@ -0,0 +1,55 @@ +%YAML 1.2 +--- +define: &root "$PYSSG_HOME/pyssg/site_example/" + +title: "Example site" +path: + src: !join [*root, "src"] + dst: !join [*root, "dst"] + plt: !join [*root, "plt"] + db: !join [*root, ".files"] +url: + main: "https://example.com" + static: "https://static.example.com" + default_image: "images/default.png" +fmt: + date: "%a, %b %d, %Y @ %H:%M %Z" + list_date: "%b %d" + list_sep_date: "%B %Y" +dirs: + /: + cfg: + plt: "page.html" + tags: False + index: False + rss: False + sitemap: False + exclude_dirs: [] +... +--- +define: &root "$PYSSG_HOME/pyssg/site_example/" + +title: "Example site" +path: + src: !join [*root, "src"] + dst: !join [*root, "dst"] + plt: !join [*root, "plt"] + db: !join [*root, ".files"] +url: + main: "https://example.com" + static: "https://static.example.com" + default_image: "images/default.png" +fmt: + date: "%a, %b %d, %Y @ %H:%M %Z" + list_date: "%b %d" + list_sep_date: "%B %Y" +dirs: + /: + cfg: + plt: "page.html" + tags: False + index: False + rss: False + sitemap: False + exclude_dirs: [] +...
\ No newline at end of file diff --git a/tests/io_files/multiple_one_doc_error.yaml b/tests/io_files/multiple_one_doc_error.yaml new file mode 100644 index 0000000..86f6546 --- /dev/null +++ b/tests/io_files/multiple_one_doc_error.yaml @@ -0,0 +1,48 @@ +%YAML 1.2 +--- +define: &root "$PYSSG_HOME/pyssg/site_example/" + +title: "Example site" +path: + src: !join [*root, "src"] + dst: !join [*root, "dst"] + plt: !join [*root, "plt"] + db: !join [*root, ".files"] +url: + main: "https://example.com" + static: "https://static.example.com" + default_image: "images/default.png" +fmt: + date: "%a, %b %d, %Y @ %H:%M %Z" + list_date: "%b %d" + list_sep_date: "%B %Y" +dirs: + /: + cfg: + plt: "page.html" + tags: False + index: False + rss: False + sitemap: False + exclude_dirs: [] +... +--- +define: &root "$PYSSG_HOME/pyssg/site_example/" + +title: "Example site" +path: + src: !join [*root, "src"] + dst: !join [*root, "dst"] + plt: !join [*root, "plt"] + db: !join [*root, ".files"] +url: + main: "https://example.com" + static: "https://static.example.com" + default_image: "images/default.png" +fmt: + date: "%a, %b %d, %Y @ %H:%M %Z" + list_date: "%b %d" + list_sep_date: "%B %Y" +dirs: + # just removing all paths as it will cause an error +...
\ No newline at end of file |