Remove the use of mock from validate-modules (#50098)
Remove the use of mock from validate-modules (#50098)

* Remove the use of mock from validate-modules

* Monkeypatch AnsibleModule.__init__ not AnsibleModule

thaim/ansible,thaim/ansible