diff options
author | Matus Valo <matusvalo@gmail.com> | 2019-02-15 06:09:40 -0800 |
---|---|---|
committer | Matus Valo <matusvalo@gmail.com> | 2019-04-10 00:01:57 -0700 |
commit | 072e19f192973ca2f5a82b1fcef134888b0dcceb (patch) | |
tree | 943c49ac5b82864968e38cc55dedabc7717ceb29 /setup.py | |
parent | 79833d3e261ad89638ad41c997b31f29a61eb6bf (diff) | |
download | py-amqp-windows-integration_tests.tar.gz |
Added RabbitMQ windows testswindows-integration_tests
Conflicts:
appveyor.yml
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -91,17 +91,24 @@ else: class pytest(setuptools.command.test.test): - user_options = [('pytest-args=', 'a', 'Arguments to pass to py.test')] + user_options = [ + ('pytest-args=', 'a', 'Arguments to pass to py.test'), + ('pytest-env=', 'E', 'Only run tests matching the environment'), + ] def initialize_options(self): setuptools.command.test.test.initialize_options(self) self.pytest_args = '' + self.pytest_env = None def run_tests(self): import pytest pytest_args = self.pytest_args.split(' ') + if self.pytest_env: + pytest_args = pytest_args + ['-E', self.pytest_env] sys.exit(pytest.main(pytest_args)) + setuptools.setup( name=NAME, packages=setuptools.find_packages(exclude=['ez_setup', 't', 't.*']), |