pytest-check
pytest-check copied to clipboard
why I am geeting no attribute 'equal' error?
Traceback (most recent call last):
File "c:/projects/xyz/1.py", line 63, in
I'm sorry you're having trouble.
Could you include an example test file that shows the error? And please include the full output, including the pytest header with versions.
Here's one example, test_foo.py:
def test_foo(check):
check.equal(5,6)
With this output:
$ pytest test_foo.py
======================== test session starts =========================
platform darwin -- Python 3.10.3, pytest-7.1.2, pluggy-1.0.0
rootdir: /Users/okken/projects/foo
plugins: check-1.0.9
collected 1 item
test_foo.py F [100%]
============================== FAILURES ==============================
______________________________ test_foo ______________________________
FAILURE:
assert 5 == 6
test_foo.py:2 in test_foo() -> check.equal(5,6)
------------------------------------------------------------
Failed Checks: 1
====================== short test summary info =======================
FAILED test_foo.py::test_foo
========================= 1 failed in 0.03s ==========================
@vbpatel73 Is this still an issue for you?
no response from filer