Skip to content

Commit

Permalink
replace flaky with pytest-rerunfailures (#7298)
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Mar 4, 2024
1 parent f49dbdc commit 721691c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ dependencies = [
# Type check
"mypy",
# Test
"pytest<8.1.0",
"pytest",
"pytest-cov",
"pytest-custom_exit_code", # used in the CI
"pytest-asyncio",
"flaky",
"pytest-rerunfailures",
"responses",
"tox",
"coverage",
Expand Down
4 changes: 1 addition & 3 deletions test/core/pipeline/test_draw.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# SPDX-FileCopyrightText: 2022-present deepset GmbH <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
import time
from unittest.mock import MagicMock, patch

import flaky
import pytest
import requests

Expand All @@ -14,7 +12,7 @@
from haystack.testing.sample_components import AddFixedValue, Double


@flaky.flaky(max_runs=5, rerun_filter=lambda *_: time.sleep(5))
@pytest.mark.flaky(reruns=5, reruns_delay=5)
@pytest.mark.integration
def test_to_mermaid_image():
pipe = Pipeline()
Expand Down

0 comments on commit 721691c

Please sign in to comment.