summaryrefslogtreecommitdiff
path: root/tests/io_files
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2023-04-25 04:03:48 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2023-04-25 04:03:48 -0600
commit1b2d6aff6ccf72fdb292a1f05bb41bf9633a8f55 (patch)
tree435d5752fc5c50a3453e550c7f95f85b70d8ad2a /tests/io_files
parent42a135329e69360745294e7bcdd4261318aeafc0 (diff)
refactor tests and add more typing
Diffstat (limited to 'tests/io_files')
-rw-r--r--tests/io_files/__init__.py0
-rw-r--r--tests/io_files/md/__init__.py0
-rw-r--r--tests/io_files/md/a/__init__.py0
-rw-r--r--tests/io_files/md/a/second.md12
-rw-r--r--tests/io_files/md/first.md10
-rw-r--r--tests/io_files/md/new.md10
-rw-r--r--tests/io_files/multiple.yaml55
-rw-r--r--tests/io_files/multiple_one_doc_error.yaml48
-rw-r--r--tests/io_files/simple.yaml28
-rw-r--r--tests/io_files/simple_missing_dirs.yaml21
-rw-r--r--tests/io_files/simple_missing_key.yaml29
-rw-r--r--tests/io_files/simple_missing_root_dir.yaml22
12 files changed, 0 insertions, 235 deletions
diff --git a/tests/io_files/__init__.py b/tests/io_files/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/tests/io_files/__init__.py
+++ /dev/null
diff --git a/tests/io_files/md/__init__.py b/tests/io_files/md/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/tests/io_files/md/__init__.py
+++ /dev/null
diff --git a/tests/io_files/md/a/__init__.py b/tests/io_files/md/a/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/tests/io_files/md/a/__init__.py
+++ /dev/null
diff --git a/tests/io_files/md/a/second.md b/tests/io_files/md/a/second.md
deleted file mode 100644
index cb4e333..0000000
--- a/tests/io_files/md/a/second.md
+++ /dev/null
@@ -1,12 +0,0 @@
-title: Second blog post for testing purposes
-author: David Luévano
- Someone Else
-lang: en
-summary: This is just a post used for testing (the second).
-tags: test
- english
- short
- update
- multiple-author
-
-A second "blog entry" for testing purposes which uses multiple authors and is inside a subdirectory.
diff --git a/tests/io_files/md/first.md b/tests/io_files/md/first.md
deleted file mode 100644
index 567ea3e..0000000
--- a/tests/io_files/md/first.md
+++ /dev/null
@@ -1,10 +0,0 @@
-title: First blog post for testing purposes
-author: David Luévano
-lang: en
-summary: This is just a post used for testing.
-tags: test
- english
- short
- update
-
-Even though I have this "blog" subdomain and page setup, doesn't mean I'll be blogging for pyssg, this is just to serve as an example for the types of sites that pyssg can be used for. \ No newline at end of file
diff --git a/tests/io_files/md/new.md b/tests/io_files/md/new.md
deleted file mode 100644
index ce684a7..0000000
--- a/tests/io_files/md/new.md
+++ /dev/null
@@ -1,10 +0,0 @@
-title: New file
-author: David Luévano
-lang: en
-summary: New file used for testing the database.
-tags: test
- english
- short
- update
-
-This is a sample markdown file used for testing pyssg. \ No newline at end of file
diff --git a/tests/io_files/multiple.yaml b/tests/io_files/multiple.yaml
deleted file mode 100644
index 8d99c40..0000000
--- a/tests/io_files/multiple.yaml
+++ /dev/null
@@ -1,55 +0,0 @@
-%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
deleted file mode 100644
index 86f6546..0000000
--- a/tests/io_files/multiple_one_doc_error.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-%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
diff --git a/tests/io_files/simple.yaml b/tests/io_files/simple.yaml
deleted file mode 100644
index df3888b..0000000
--- a/tests/io_files/simple.yaml
+++ /dev/null
@@ -1,28 +0,0 @@
-%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: []
-... \ No newline at end of file
diff --git a/tests/io_files/simple_missing_dirs.yaml b/tests/io_files/simple_missing_dirs.yaml
deleted file mode 100644
index aa15fb5..0000000
--- a/tests/io_files/simple_missing_dirs.yaml
+++ /dev/null
@@ -1,21 +0,0 @@
-%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:
-# test missing dirs
-... \ No newline at end of file
diff --git a/tests/io_files/simple_missing_key.yaml b/tests/io_files/simple_missing_key.yaml
deleted file mode 100644
index ac81563..0000000
--- a/tests/io_files/simple_missing_key.yaml
+++ /dev/null
@@ -1,29 +0,0 @@
-%YAML 1.2
----
-define: &root "$PYSSG_HOME/pyssg/site_example/"
-
-# test missing mandatory key
-# 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/simple_missing_root_dir.yaml b/tests/io_files/simple_missing_root_dir.yaml
deleted file mode 100644
index 07fa824..0000000
--- a/tests/io_files/simple_missing_root_dir.yaml
+++ /dev/null
@@ -1,22 +0,0 @@
-%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:
-# test missing /:
- something:
-... \ No newline at end of file