mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
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:
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 579 B After Width: | Height: | Size: 579 B |
Reference in New Issue
Block a user