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