potiuk commented on a change in pull request #4938: [AIRFLOW-4117] Multi-staging Image - Travis CI tests [Step 3/3] URL: https://github.com/apache/airflow/pull/4938#discussion_r299624637
########## File path: setup.py ########## @@ -47,26 +47,10 @@ long_description = '' -class Tox(TestCommand): - user_options = [('tox-args=', None, "Arguments to pass to tox")] - - def __init__(self, dist, **kw): - super().__init__(dist, **kw) - self.test_suite = True - self.test_args = [] - self.tox_args = '' - - def initialize_options(self): - TestCommand.initialize_options(self) - - def finalize_options(self): - TestCommand.finalize_options(self) - - def run_tests(self): - # import here, cause outside the eggs aren't loaded - import tox - errno = tox.cmdline(args=self.tox_args.split()) - sys.exit(errno) +def airflow_test_suite(): + test_loader = unittest.TestLoader() + test_suite = test_loader.discover('tests', pattern='test_*.py') Review comment: i will double check. The conversation was resolved by mistake so i did not see it :). ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services