Commit f0596cb446f39656e5b2fcab613cd34149372193
1 parent
399b7dd8
Exists in
master
and in
31 other branches
Running behave on travis
Showing
2 changed files
with
2 additions
and
3 deletions
Show diff stats
.travis.yml
| ... | ... | @@ -10,11 +10,12 @@ env: |
| 10 | 10 | - DJANGO_SETTINGS_MODULE=tests.settings |
| 11 | 11 | |
| 12 | 12 | install: |
| 13 | - - pip install coveralls flake8 | |
| 13 | + - pip install coveralls flake8 behave behave_django | |
| 14 | 14 | - pip install . |
| 15 | 15 | |
| 16 | 16 | script: |
| 17 | 17 | - python setup.py test |
| 18 | + - colab-admin behave | |
| 18 | 19 | - flake8 colab |
| 19 | 20 | |
| 20 | 21 | after_success: | ... | ... |
tests/run.py
| ... | ... | @@ -13,7 +13,6 @@ import django |
| 13 | 13 | import coverage |
| 14 | 14 | |
| 15 | 15 | from django.conf import settings |
| 16 | -from django.core.management import execute_from_command_line | |
| 17 | 16 | from django.test.utils import get_runner |
| 18 | 17 | |
| 19 | 18 | |
| ... | ... | @@ -23,7 +22,6 @@ def runtests(): |
| 23 | 22 | |
| 24 | 23 | test_runner = get_runner(settings) |
| 25 | 24 | failures = test_runner(interactive=False, failfast=False).run_tests([]) |
| 26 | - execute_from_command_line(['colab-admin', 'behave']) | |
| 27 | 25 | sys.exit(failures) |
| 28 | 26 | |
| 29 | 27 | ... | ... |