We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The current implementation creates custom markers on tests, for example:
@pytest.mark.optional @pytest.mark.postgres def test_run(monkeypatch): ...
and then calls different pytest commands in the .travis.yml file, for example:
pytest
.travis.yml
elif [ $PYPI_BUILD = 'only_plotting' ]; then python -m pytest -m "not postgres"
A cleaner way to do this is to use pytest's skipif method:
skipif
@pytest.mark.skipif('rpy2' in sys.modules, reason="primrose[R] is optional") def test_run(): ...
This requires just one pytest command, regardless of which build is chosen (postgres, plotting, complete, etc.)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The current implementation creates custom markers on tests, for example:
and then calls different
pytest
commands in the.travis.yml
file, for example:A cleaner way to do this is to use
pytest
'sskipif
method:This requires just one
pytest
command, regardless of which build is chosen (postgres, plotting, complete, etc.)The text was updated successfully, but these errors were encountered: