Skip to content

Instantly share code, notes, and snippets.

@bryanwb
Created Nov 24, 2015
Embed
What would you like to do?
how to write python unit tests for an ansible module?
def method1():
pass
def method2()
pass
# import module snippets
from ansible.module_utils.basic import *
# main never gets called :(
if __name__ == '__main':
main()
@sudoAvinash
Copy link

sudoAvinash commented Apr 27, 2018

please, explain this stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment