set flask environment in test script, not in command