From e42d5ccb815b71c0b12c94eab24e9233a1a07529 Mon Sep 17 00:00:00 2001 From: mission-liao Date: Fri, 27 Nov 2015 18:54:32 +0800 Subject: [PATCH] [version] - add pyswagger.primitives.Renderer for https://github.com/mission-liao/pyswagger/issues/44 --- pyswagger/VERSION | 2 +- t.py | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 t.py diff --git a/pyswagger/VERSION b/pyswagger/VERSION index 832bad2..7d87d99 100644 --- a/pyswagger/VERSION +++ b/pyswagger/VERSION @@ -1 +1 @@ -0.8.14 +0.8.15 diff --git a/t.py b/t.py new file mode 100644 index 0000000..0916a73 --- /dev/null +++ b/t.py @@ -0,0 +1,21 @@ +import unittest +from pyswagger.tests.test_render import ObjectTestCase as t + + +if __name__ == '__main__': + import logging + logger = logging.getLogger('pyswagger') + + formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') + + console = logging.StreamHandler() + console.setLevel(logging.DEBUG) + console.setFormatter(formatter) + + logger.addHandler(console) + logger.setLevel(logging.ERROR) + + unittest.TextTestRunner().run( + unittest.makeSuite(t, 'test_') + ) +