-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
broken test with reruns plugin #64
Comments
Thanks @phnmn for reporting this issue ! I guess that pytest-rerunfailures does not change the test node id when re-running tests ?
Should we issue a warning and allow overwriting previous run's saved data ? This seems risky but maybe it is not, after all ? |
@smarie, thank you for you response. class HarvestStoreMockDict(OrderedDict):
def __contains__(self, item):
return False
HARVEST_STORE = HarvestStoreMockDict()
@pytest.fixture(scope="session")
@saved_fixture(HARVEST_STORE)
def some_fixture():
... And I didn't encounter any problems during this time. |
I think that this was more of a way for me to check that the storage logic was indeed creating a distinct slot for each test node. So we could remove the protection and instead overwrite the previously saved contents. |
When test runs with reruns pytest plugin (eg pytest-rerunfailures) failed test will become broken with "already stored" error:
example of test_rerun_harvets.py
and run test with 2 reruns
installed deps:
The text was updated successfully, but these errors were encountered: