aboutsummaryrefslogtreecommitdiffstats
path: root/tests/data/test_config
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data/test_config')
-rw-r--r--tests/data/test_config/conf.py30
-rw-r--r--tests/data/test_config/config.with+illegal(module)name.characters.py6
-rw-r--r--tests/data/test_config/prod.py6
3 files changed, 42 insertions, 0 deletions
diff --git a/tests/data/test_config/conf.py b/tests/data/test_config/conf.py
new file mode 100644
index 0000000..2a2d1b8
--- /dev/null
+++ b/tests/data/test_config/conf.py
@@ -0,0 +1,30 @@
+# -*- coding: utf-8 -*-
+import time
+
+BLOG_AUTHOR = "Your Name"
+BLOG_TITLE = "Demo Site"
+SITE_URL = "https://example.com/"
+BLOG_EMAIL = "joe@demo.site"
+BLOG_DESCRIPTION = "This is a demo site for Nikola."
+DEFAULT_LANG = "en"
+CATEGORY_ALLOW_HIERARCHIES = False
+CATEGORY_OUTPUT_FLAT_HIERARCHY = False
+HIDDEN_CATEGORIES = []
+HIDDEN_AUTHORS = ['Guest']
+LICENSE = ""
+
+CONTENT_FOOTER_FORMATS = {
+ DEFAULT_LANG: (
+ (),
+ {
+ "email": BLOG_EMAIL,
+ "author": BLOG_AUTHOR,
+ "date": time.gmtime().tm_year,
+ "license": LICENSE
+ }
+ )
+}
+
+ADDITIONAL_METADATA = {
+ "ID": "conf"
+}
diff --git a/tests/data/test_config/config.with+illegal(module)name.characters.py b/tests/data/test_config/config.with+illegal(module)name.characters.py
new file mode 100644
index 0000000..39a8aeb
--- /dev/null
+++ b/tests/data/test_config/config.with+illegal(module)name.characters.py
@@ -0,0 +1,6 @@
+import conf
+
+globals().update(vars(conf))
+ADDITIONAL_METADATA = {
+ "ID": "illegal"
+}
diff --git a/tests/data/test_config/prod.py b/tests/data/test_config/prod.py
new file mode 100644
index 0000000..3838827
--- /dev/null
+++ b/tests/data/test_config/prod.py
@@ -0,0 +1,6 @@
+import conf
+
+globals().update(vars(conf))
+ADDITIONAL_METADATA = {
+ "ID": "prod"
+}