- python setup.py install
# command to run tests
+before_script:
+- python tests/get_samples.py
+
script:
# - py.test tests --ignore tests/sandbox
- python setup.py test
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
-
- import os
- os.chdir('tests')
- from tools import check_samples
- check_samples()
- os.chdir('..')
-
errno = pytest.main(self.test_args)
sys.exit(errno)
--- /dev/null
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+from tools import check_samples
+
+check_samples()