use mock trick in conf.py