Skip to content

Instantly share code, notes, and snippets.

@meejah
Created February 28, 2018 20:48
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 meejah/4453531267b14956d5c26497da616cfb to your computer and use it in GitHub Desktop.
Save meejah/4453531267b14956d5c26497da616cfb to your computer and use it in GitHub Desktop.
coverage-example
def do_stuff(arg):
if arg == 1 or arg == 2:
return "flarg"
return "glumphy"
def test_a():
assert do_stuff(1) == "flarg"
def test_b():
assert do_stuff(99) == "glumphy"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment