Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Start integrating pytest #6827

Merged
merged 16 commits into from May 7, 2020
6 changes: 4 additions & 2 deletions .travis.yml
Expand Up @@ -29,8 +29,9 @@ before_script:
- export TEST_DATABASE_URL=postgresql://postgres@localhost:5432/test
- bash scripts/test_multiple_heads.sh

script:
- nosetests tests/ -v --with-coverage
script: |
nosetests tests/ -v --with-coverage -I tests/all/integration/api/helpers/test_auth.py
pytest tests/all/integration/api/helpers/test_auth.py
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not cool

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know another way to do it.
Somehow I have to exclude test_auth from nostests and test it with pytest


after_success:
- 'bash <(curl -s https://codecov.io/bash)'
Expand All @@ -40,3 +41,4 @@ branches:
only:
- master
- development
- pytest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not cool

2 changes: 2 additions & 0 deletions requirements/tests.txt
Expand Up @@ -2,3 +2,5 @@

coverage~=5.0
dredd_hooks~=0.2
pytest ~= 5.2.1