Closed jcheng5 closed 3 months ago
:tada: This issue has been resolved in version 4.7.1 :tada:
The release is available on:
v4.7.1
Your semantic-release bot :package::rocket:
Let me know if 4.7.1 fixes the issue for you. I've tested it manually and seems to work.
I need to follow up on how to properly test this to prevent regressions.. for other plugins we sometimes mimic the behaviour of the plugin in a test. So in this case we can create a plugin within a test that sets the outcome to some arbitrary value.
Longer term, I'd like to add compatibility tests for a number of the popular plugins out there. Created #882 to track that
Works great—thank you for the amazingly fast turnaround!
Describe the bug
Starting with syrupy 4.6.3, tests that are marked with
@pytest.mark.flaky
for pytest-rerunfailures cause internal errorValueError: 'rerun' is not a valid ItemStatus
. The error happens on this line, which was introduced in https://github.com/syrupy-project/syrupy/commit/3f6e30182b3aed34687782385c16001c7cf0b5f3.This happens because pytest-rerunfailures sets the outcome to the value
"rerun"
on this line.To reproduce
test_example.py:
The outcome you get with 4.6.3 is:
Expected behavior
The desired output looks like this (using syrupy 4.6.2):
Environment (please complete the following information):