diff --git a/dandischema/tests/test_datacite.py b/dandischema/tests/test_datacite.py index 6c4f270..34caaea 100644 --- a/dandischema/tests/test_datacite.py +++ b/dandischema/tests/test_datacite.py @@ -156,6 +156,7 @@ def test_datacite(dandi_id: str, schema: Any) -> None: datacite_post(datacite, meta.doi) +@pytest.mark.flaky(reruns=5, reruns_delay=5, only_rerun="HTTPError") @skipif_no_network @pytest.mark.parametrize( "additional_meta, datacite_checks", diff --git a/setup.cfg b/setup.cfg index 074d496..7ebd2c5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -54,6 +54,7 @@ test = mypy pytest pytest-cov + pytest-rerunfailures all = #%(doc)s %(style)s