aboutsummaryrefslogtreecommitdiffstats
path: root/tests/extensions
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2014-08-20 14:32:09 -0400
committerWaylan Limberg <waylan.limberg@icloud.com>2014-08-20 14:32:09 -0400
commit1918cd26a16bf6051b3fcc791e1f260bad846c72 (patch)
treef213b5a2b87f9424a1a6391a768c3accb66ff810 /tests/extensions
parente7b6a33f0e3dd37d276a0c18dcbdc62e2c80ed98 (diff)
downloadmarkdown-1918cd26a16bf6051b3fcc791e1f260bad846c72.tar.gz
markdown-1918cd26a16bf6051b3fcc791e1f260bad846c72.tar.bz2
markdown-1918cd26a16bf6051b3fcc791e1f260bad846c72.zip
Refactored test framework to use YAML config files rather than INI. Fixes #333.
Diffstat (limited to 'tests/extensions')
-rw-r--r--tests/extensions/extra/test.cfg36
-rw-r--r--tests/extensions/test.cfg86
2 files changed, 78 insertions, 44 deletions
diff --git a/tests/extensions/extra/test.cfg b/tests/extensions/extra/test.cfg
index 52d48f0..fe5ca22 100644
--- a/tests/extensions/extra/test.cfg
+++ b/tests/extensions/extra/test.cfg
@@ -1,20 +1,28 @@
-[DEFAULT]
-extensions=extra
+DEFAULT:
+ extensions:
+ - extra
-[loose_def_list]
-extensions=def_list
+loose_def_list:
+ extensions:
+ - def_list
-[simple_def-lists]
-extensions=def_list
+simple_def-lists:
+ extensions:
+ - def_list
-[abbr]
-extensions=abbr
+abbr:
+ extensions:
+ - abbr
-[footnotes]
-extensions=footnotes
+footnotes:
+ extensions:
+ - footnotes
-[tables]
-extensions=tables
+tables:
+ extensions:
+ - tables
-[tables_and_attr_list]
-extensions=tables,attr_list
+tables_and_attr_list:
+ extensions:
+ - tables
+ - attr_list
diff --git a/tests/extensions/test.cfg b/tests/extensions/test.cfg
index c05a64e..0ef3c94 100644
--- a/tests/extensions/test.cfg
+++ b/tests/extensions/test.cfg
@@ -1,43 +1,69 @@
-[attr_list]
-extensions=attr_list,def_list,smarty
+attr_list:
+ extensions:
+ - attr_list
+ - def_list
+ - smarty
-[codehilite]
-extensions=codehilite
-# This passes or not based on version of pygments.
-skip=1
+codehilite:
+ extensions:
+ - codehilite
+ # This passes or not based on version of pygments.
+ skip: True
-[toc]
-extensions=toc
+toc:
+ extensions:
+ - toc
-[toc_invalid]
-extensions=toc
+toc_invalid:
+ extensions:
+ - toc
-[toc_out_of_order]
-extensions=toc
+toc_out_of_order:
+ extensions:
+ - toc
-[toc_nested]
-extensions=toc(permalink=1)
+toc_nested:
+ extensions:
+ - toc
+ extension_configs:
+ toc:
+ permalink: True
-[toc_nested2]
-extensions=toc(permalink=[link])
+toc_nested2:
+ extensions:
+ - toc
+ extension_configs:
+ toc:
+ permalink: "[link]"
-[wikilinks]
-extensions=wikilinks
+wikilinks:
+ extensions:
+ - wikilinks
-[fenced_code]
-extensions=fenced_code
+fenced_code:
+ extensions:
+ - fenced_code
-[github_flavored]
-extensions=fenced_code
+github_flavored:
+ extensions:
+ - fenced_code
-[sane_lists]
-extensions=sane_lists
+sane_lists:
+ extensions:
+ - sane_lists
-[nl2br_w_attr_list]
-extensions=nl2br,attr_list
+nl2br_w_attr_list:
+ extensions:
+ - nl2br
+ - attr_list
-[admonition]
-extensions=admonition
+admonition:
+ extensions:
+ - admonition
-[smarty]
-extensions=smarty(smart_angled_quotes=1)
+smarty:
+ extensions:
+ - smarty
+ extension_configs:
+ smarty:
+ smart_angled_quotes: True