Skip to content

Instantly share code, notes, and snippets.

@bryanwb
Created November 24, 2015 05:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryanwb/0e8a77c106a25bfca70c to your computer and use it in GitHub Desktop.
Save bryanwb/0e8a77c106a25bfca70c to your computer and use it in GitHub Desktop.
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

please, explain this stuff

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