From 344ae771a802987ac4f07118bedcfad10e4eb08f Mon Sep 17 00:00:00 2001 From: Ales Zoulek Date: Wed, 25 Aug 2010 14:58:09 +0200 Subject: [PATCH] embeded tests in setup.py --- setup.py | 1 + tests/runtests.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 42cb7df..7fe0948 100644 --- a/setup.py +++ b/setup.py @@ -21,5 +21,6 @@ setup( ], packages=find_packages(), include_package_data=True, + test_suite='tests.runtests.runtests', ) diff --git a/tests/runtests.py b/tests/runtests.py index 9258151..97d86d5 100644 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -1,7 +1,8 @@ """Borrowed from Carl Meyer's django-adminfiles.""" -import os, sys +import os +import sys parent = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.insert(0, parent)