Move tests out of app module

(Directory structure as suggested in
[Django testing docs][1].)

[1]: https://docs.djangoproject.com/en/1.9/topics/testing/advanced/#using-the-django-test-runner-to-test-reusable-applications
This commit is contained in:
medmunds
2016-03-21 11:38:58 -07:00
parent bb8494263f
commit 385d76b53a
17 changed files with 2 additions and 3 deletions

View File

@@ -1,3 +1,2 @@
include README.rst AUTHORS.txt LICENSE include README.rst AUTHORS.txt LICENSE
recursive-include anymail *.py recursive-include anymail *.py
prune anymail/tests

View File

@@ -78,6 +78,6 @@ get from from environment variables. Look in the ``*_integration_tests.py``
files in the `tests source`_ for specific requirements. files in the `tests source`_ for specific requirements.
.. _.travis.yml: https://github.com/anymail/django-anymail/blob/master/.travis.yml .. _.travis.yml: https://github.com/anymail/django-anymail/blob/master/.travis.yml
.. _tests source: https://github.com/anymail/django-anymail/blob/master/anymail/tests .. _tests source: https://github.com/anymail/django-anymail/blob/master/tests
.. _mock: http://www.voidspace.org.uk/python/mock/index.html .. _mock: http://www.voidspace.org.uk/python/mock/index.html
.. _tested on Travis: https://travis-ci.org/anymail/django-anymail .. _tested on Travis: https://travis-ci.org/anymail/django-anymail

View File

@@ -52,7 +52,7 @@ except ImportError:
def runtests(*args): def runtests(*args):
test_runner = TestRunner(verbosity=1) test_runner = TestRunner(verbosity=1)
test_labels = args if len(args) > 0 else [APP] test_labels = args if len(args) > 0 else ['tests']
failures = test_runner.run_tests(test_labels) failures = test_runner.run_tests(test_labels)
sys.exit(failures) sys.exit(failures)

View File

Before

Width:  |  Height:  |  Size: 579 B

After

Width:  |  Height:  |  Size: 579 B