diff --git a/examples/pytest-demo/fail_test.py b/examples/pytest-demo/fail_test.py new file mode 100644 index 0000000000000000000000000000000000000000..dc494b1a7707ae6577aba31e95d0ed6ec729d6bd --- /dev/null +++ b/examples/pytest-demo/fail_test.py @@ -0,0 +1,5 @@ +def square(x): + return x * x + +def test_the_square_of_negative_5_is_negative_25(): + assert square(-5) == -25 diff --git a/examples/pytest-demo/num_test.py b/examples/pytest-demo/pass_test.py similarity index 70% rename from examples/pytest-demo/num_test.py rename to examples/pytest-demo/pass_test.py index 30d8afe4443049566699b83c9783d5a5cedc9e0f..64f0271c0dc1ce290e5d1479ecbbda62d8df290d 100644 --- a/examples/pytest-demo/num_test.py +++ b/examples/pytest-demo/pass_test.py @@ -9,6 +9,3 @@ def square(x): def test_the_square_of_5_is_25(): assert square(5) == 25 - -# def test_the_square_of_negative_5_is_negative_25(): -# assert square(-5) == -25