Created
April 23, 2018 07:42
-
-
Save oivvio/c88363e036043683dcc85728a1485b22 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def myadd(a, b): | |
print("Now when we drop into pdb, backspace will not work") | |
import pdb | |
pdb.set_trace() | |
return a + b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
invoke==0.22.1 | |
nose==1.3.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from invoke import task | |
@task | |
def test(ctx, pty=True): | |
""" Run a unit test """ | |
cmd = "nosetests --nocapture" | |
print(cmd) | |
ctx.run(cmd) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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