Runner and environment
You may use the env configuration property to set environment variables for the test runner process.
def configure():
return {
'env': {
'params': {
'env': 'DJANGO_SETTINGS_MODULE=myproject.settings;DEBUG=1',
},
},
}env.params.env
env.params.env allows you to set semicolon-separated spawned runner process environment variables.