Python test with AssertionError shown as passing in TestProject report

Whenever I run a python test with an assertion that fails, resulting in an AssertionError, the test is shown as passing in the TestProject report…

It looks like the assertion step is interpreted by TestProject as a “Get Text from element” step - this seems to be the root cause.

While, yes, the assertion step does have to perform a Get Text from element operation, the actual step should be something along the lines of "Assert element contains "…

What is the best way to address this?

Just found out about the @report_assertion_errors decorator… I’ll give that a try!