From 9bbac3d8b78a4f4ef4607cae79d6d1de6fab14bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Husiaty=C5=84ski?= Date: Sun, 24 Feb 2013 14:27:35 +0000 Subject: [PATCH] tests runner is now nose + setuptools Previously, there was enigmatic description how to run tests (`make test` was the command, but no Makefile). In addition, separate requirements file. Now, single, standard command handles everything. --- setup.py | 5 +++++ tests/README.md | 4 ++-- tests/__init__.py | 0 tests/requirements.txt | 4 ---- 4 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 tests/__init__.py delete mode 100644 tests/requirements.txt diff --git a/setup.py b/setup.py index 7e99bb8d..c422b797 100755 --- a/setup.py +++ b/setup.py @@ -13,6 +13,11 @@ zip_safe=False, include_package_data=True, platforms='any', + test_suite = 'nose.collector', + setup_requires=[ + 'nose>=1.1.2', + 'mock>=0.8', + ], install_requires=[ 'Flask>=0.8', 'pycrypto>=2.6', diff --git a/tests/README.md b/tests/README.md index a7a76fd7..e8221ba9 100644 --- a/tests/README.md +++ b/tests/README.md @@ -1,5 +1,5 @@ # Running the tests -Go up a directory and run: +Go to main directory and type: - $ make test + python2 setup.py test diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/tests/requirements.txt b/tests/requirements.txt deleted file mode 100644 index 45286cf6..00000000 --- a/tests/requirements.txt +++ /dev/null @@ -1,4 +0,0 @@ -mock>=0.8 -nose>=1.1.2 -flask>=0.8 -pycrypto>=2.6