Ejemplo n.º 1
0
def test_succeed():
    print(
        "Coucou, c'est le test qui parle!!!"
    )  # demo de pytest -s, l'option -s permet de récupérer les sorties standards du test
    assert inc(3) == 4
Ejemplo n.º 2
0
def test_failed():
    assert inc(3) == 5
 def test_zero(self):
     assert inc(self.a) == 1
def test_sept():
    b = 9
    assert inc(b) == 10
def test_8():
    a = 8
    assert inc(a) == 9
 def test_sept(self):
     assert inc(self.b) == 8