Use pytest.approx() to wrap expected return value. assert 0.1 + 0.1 + 0.1 == pytest.approx(0.3). Unit Testing for Data Science in Python ...
確定! 回上一頁