Skip to content

Instantly share code, notes, and snippets.

@oivvio
Created April 23, 2018 07:42
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 oivvio/c88363e036043683dcc85728a1485b22 to your computer and use it in GitHub Desktop.
Save oivvio/c88363e036043683dcc85728a1485b22 to your computer and use it in GitHub Desktop.
def myadd(a, b):
print("Now when we drop into pdb, backspace will not work")
import pdb
pdb.set_trace()
return a + b
invoke==0.22.1
nose==1.3.7
from invoke import task
@task
def test(ctx, pty=True):
""" Run a unit test """
cmd = "nosetests --nocapture"
print(cmd)
ctx.run(cmd)
from lib import myadd
def test_myadd():
assert myadd(1,1) == 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment