Skip to content

Instantly share code, notes, and snippets.

@zzzeek
Created July 9, 2014 19:17
Show Gist options
  • Save zzzeek/0cec9a5bbf0256f77faf to your computer and use it in GitHub Desktop.
Save zzzeek/0cec9a5bbf0256f77faf to your computer and use it in GitHub Desktop.
stupidly simple way to integrate setup.py test with pytest
# 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