From cc452998dc1af441cf3f9c5d0c7287cb5de48c4a Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Sat, 30 May 2009 22:29:56 -0400 Subject: Initial implementation of nose testing. Still some cleanup to do, but this shows the differances between the old and the new. Also left one test failing (unsignificant white space only) to demonstrate what a failing test looks like. --- tests/util.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/util.py (limited to 'tests/util.py') diff --git a/tests/util.py b/tests/util.py new file mode 100644 index 0000000..3b0175d --- /dev/null +++ b/tests/util.py @@ -0,0 +1,15 @@ +from ConfigParser import SafeConfigParser + +class MdSyntaxError(Exception): + pass + + +class CustomConfigParser(SafeConfigParser): + def get(self, section, option): + value = SafeConfigParser.get(self, section, option) + if option == 'extensions': + if len(value.strip()): + return value.split(',') + else: + return [] + return value -- cgit v1.2.3 From 8b430d251b2518fa3303d7027f50268e0254b7a1 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Sat, 30 May 2009 22:31:55 -0400 Subject: Moves tests to a subdir of the markdown lib. --- tests/util.py | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 tests/util.py (limited to 'tests/util.py') diff --git a/tests/util.py b/tests/util.py deleted file mode 100644 index 3b0175d..0000000 --- a/tests/util.py +++ /dev/null @@ -1,15 +0,0 @@ -from ConfigParser import SafeConfigParser - -class MdSyntaxError(Exception): - pass - - -class CustomConfigParser(SafeConfigParser): - def get(self, section, option): - value = SafeConfigParser.get(self, section, option) - if option == 'extensions': - if len(value.strip()): - return value.split(',') - else: - return [] - return value -- cgit v1.2.3 From 28caf01c8082dbed3a5ca87b070ffe5657514f01 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Fri, 12 Feb 2010 16:24:15 -0500 Subject: Moved test dir back out of markdown lib. We don't need to install the tests in everyones site-packages. We just need to distrubute them in the tarball for people to run before installing etc. --- tests/util.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/util.py (limited to 'tests/util.py') diff --git a/tests/util.py b/tests/util.py new file mode 100644 index 0000000..aae87be --- /dev/null +++ b/tests/util.py @@ -0,0 +1,15 @@ +from ConfigParser import SafeConfigParser + +class MarkdownSyntaxError(Exception): + pass + + +class CustomConfigParser(SafeConfigParser): + def get(self, section, option): + value = SafeConfigParser.get(self, section, option) + if option == 'extensions': + if len(value.strip()): + return value.split(',') + else: + return [] + return value -- cgit v1.2.3