jdiegodcp / ramlfications

Python parser for RAML
https://ramlfications.readthedocs.org
Apache License 2.0
234 stars 50 forks source link

Fixed how args are passed to pytest in setup.py. #55

Closed matiasb closed 8 years ago

matiasb commented 8 years ago

Following the instructions in the README for developer setup, if you create the env inside the project dir, when running tests with tox (or python setup.py test), the tests from all the dependencies are run too because pytest is discovering tests in the base dir. This is because self.pytest_args or [] + ["tests"] is not doing what is expected (I guess?). self.pytest_args is a non-empty string (when running through tox), and OTOH, the + has higher precedence than the or.

econchick commented 8 years ago

Many apologies for the delay. Thank you so much for the patch!