DG
Size: a a a
DG
АК
reason наверно raises имелось ввиду.xfail и with raises() - который сам по себе ассерт для всплывающих эксепшенов 😅DG
reason наверно raises имелось ввиду.xfail и with raises() - который сам по себе ассерт для всплывающих эксепшенов 😅АК
Using pytest.raises is likely to be better for cases where you are testing exceptions your own code is deliberately raising, whereas using @pytest.mark.xfail with a check function is probably better for something like documenting unfixed bugs (where the test describes what “should” happen) or bugs in dependencies.
DG
Using pytest.raises is likely to be better for cases where you are testing exceptions your own code is deliberately raising, whereas using @pytest.mark.xfail with a check function is probably better for something like documenting unfixed bugs (where the test describes what “should” happen) or bugs in dependencies.
СС
Using pytest.raises is likely to be better for cases where you are testing exceptions your own code is deliberately raising, whereas using @pytest.mark.xfail with a check function is probably better for something like documenting unfixed bugs (where the test describes what “should” happen) or bugs in dependencies.
СС
СС
СС
СС
АК
DG
СС
АК
EB
reason наверно raises имелось ввиду.xfail и with raises() - который сам по себе ассерт для всплывающих эксепшенов 😅EB
Using pytest.raises is likely to be better for cases where you are testing exceptions your own code is deliberately raising, whereas using @pytest.mark.xfail with a check function is probably better for something like documenting unfixed bugs (where the test describes what “should” happen) or bugs in dependencies.
АК
А
АК
А