Created
July 9, 2014 19:17
-
-
Save zzzeek/0cec9a5bbf0256f77faf to your computer and use it in GitHub Desktop.
stupidly simple way to integrate setup.py test with pytest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# as opposed to setuptools-dependent http://pytest.org/latest/goodpractises.html#integration-with-setuptools-test-commands | |
# or non-OSS and incredibly verbose http://pytest.org/latest/goodpractises.html#integrating-with-distutils-python-setup-py-test | |
# just call this "mypackage.run_disutils" and then | |
# test_suite="mypackage.run_distutils" | |
import unittest | |
import pytest | |
class TestSuite(unittest.TestCase): | |
def test_sqlalchemy(self): | |
pytest.main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment