fix tests

This commit is contained in:
2019-09-18 12:08:20 -04:00
parent a4483fa705
commit 69adc84002
3 changed files with 16 additions and 16 deletions
+4 -4
View File
@@ -1,18 +1,18 @@
def test_echo(bake):
c = bake("echo", fixture="1")
assert "kenneth" in c.out
assert "kenneth" in c.err
def test_first_level_dep(bake):
c = bake("needs-echo", fixture="1")
assert "kenneth" in c.out
assert "kenneth" in c.err
def test_second_level_dep(bake):
c = bake("needs-needs", fixture="1")
assert "kenneth" in c.out
assert "kenneth" in c.err
def test_python_invocation(bake):
c = bake("python", fixture="1")
assert "wow" in c.out
assert "wow" in c.err
+12 -12
View File
@@ -1,30 +1,30 @@
def test_confirm(bake):
c = bake("kinda-dangerous", fixture="2", block=False)
def test_confirm(bake_i):
c = bake_i("kinda-dangerous", fixture="2", block=False)
c.expect(":", timeout=0.5)
c.send("N\n")
c.block()
assert "Aborted!" in c.out
assert "Aborted!" in c.err
def test_confirm_secure(bake):
c = bake("really-dangerous", fixture="2", block=False)
def test_confirm_secure(bake_i):
c = bake_i("really-dangerous", fixture="2", block=False)
c.expect(":", timeout=0.5)
c.send("4222\n")
c.block()
assert "Wrong answer!" in c.out
assert "Wrong answer!" in c.err
def test_confirm_dep(bake):
c = bake("mostly-harmless", fixture="2", block=False)
def test_confirm_dep(bake_i):
c = bake_i("mostly-harmless", fixture="2", block=False)
c.expect(":", timeout=0.5)
c.send("N\n")
c.block()
assert "Aborted!" in c.out
assert "Aborted!" in c.err
def test_confirm_secure(bake):
c = bake("mostly-dangerous", fixture="2", block=False)
def test_confirm_secure(bake_i):
c = bake_i("mostly-dangerous", fixture="2", block=False)
c.expect(":", timeout=0.5)
c.send("4222\n")
c.block()
assert "Wrong answer!" in c.out
assert "Wrong answer!" in c.err
View File