From: Andres Weber Date: Thu, 1 Nov 2018 01:50:55 +0000 (-0400) Subject: adding functionality for user to use `python setup.py test` X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=c569cc49633d0b1b2599e74c954bbe2e586eca9a;p=redacted-XKCD-password-generator.git adding functionality for user to use `python setup.py test` --- diff --git a/setup.py b/setup.py index 3dae71f..7a7eb86 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ from setuptools import setup +import sys setup( name='xkcdpass', @@ -17,6 +18,8 @@ setup( 'xkcdpass = xkcdpass.xkcd_password:main', ], }, + tests_require=['mock'] if sys.version_info[0] == 2 else None, + test_suite = 'tests', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Programming Language :: Python :: 2',