Output
============================ test session starts ============================
platform darwin -- Python 3.9.6, pytest-8.4.2, pluggy-1.6.0
rootdir: /work
collected 1 item    

test_file.py F                                                       [100%]

===================================FAILURES =================================
______________________ test_divide_two_numbers_method _______________________

    def test_divide_two_numbers_method():
    
        result = divide_two_numbers(4, 20)
        assert isinstance(result, (int, float))
    
>       result = divide_two_numbers(5, 0)

test_file.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

a = 5, b = 0

    def divide_two_numbers(a, b):
    
>       return a/b
E       ZeroDivisionError: division by zero

project.py:3: ZeroDivisionError
================================ short test summary info =======================
FAILED test_file.py::
test_divide_two_numbers_method - ZeroDivisionError: division by zero
================================= 1 failed in 0.03s ============================

Échec

Résumé des tests