added mock to pip and remove unnecessary view import