From 79a79fdcf2b75a295916517851925f78b638cb42 Mon Sep 17 00:00:00 2001 From: mprahl Date: Wed, 13 Sep 2017 10:04:03 -0400 Subject: [PATCH] Support calling the tests by using pytest instead of just py.test --- module_build_service/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module_build_service/config.py b/module_build_service/config.py index 38c2b6cd..24d10e58 100644 --- a/module_build_service/config.py +++ b/module_build_service/config.py @@ -72,7 +72,7 @@ def init_config(app): if 'MBS_CONFIG_SECTION' in app.request.environ: config_section = app.request.environ['MBS_CONFIG_SECTION'] # TestConfiguration shall only be used for running tests, otherwise... - if any(['nosetests' in arg or 'noserunner.py' in arg or 'py.test' in arg or 'pytest.py' in arg for arg in sys.argv]): + if any(['nosetests' in arg or 'noserunner.py' in arg or 'py.test' in arg or 'pytest' in arg for arg in sys.argv]): config_section = 'TestConfiguration' from conf import config config_module = config