make sure mock only used in RTD

Signed-off-by: Erik Bernoth <erik.bernoth@gmail.com>