Permalink
Browse files

use setup.py test. This fixes #56

  • Loading branch information...
1 parent a6617f4 commit 707b30749daf407c07b5b265bd892564576ad80a @mitsuhiko mitsuhiko committed May 31, 2010
Showing with 10 additions and 2 deletions.
  1. +1 −1 Makefile
  2. +9 −1 setup.py
View
@@ -3,7 +3,7 @@
all: clean-pyc test
test:
- python tests/flask_tests.py
+ python setup.py test
release:
python setup.py release sdist upload
View
@@ -41,6 +41,13 @@ def hello():
from setuptools import setup
+def run_tests():
+ import os, sys
+ sys.path.append(os.path.join(os.path.dirname(__file__), 'tests'))
+ from flask_tests import suite
+ return suite()
+
+
setup(
name='Flask',
version='0.4',
@@ -67,5 +74,6 @@ def hello():
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
- ]
+ ],
+ test_suite='__main__.run_tests'
)

0 comments on commit 707b307

Please sign in to comment.