mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-11-27 18:48:04 +01:00
automatically re-run flaky tests
This commit is contained in:
parent
bbbcd4730c
commit
0a4e0547ca
4 changed files with 11 additions and 0 deletions
|
@ -50,6 +50,10 @@ testpaths = [
|
|||
"src",
|
||||
]
|
||||
|
||||
markers = [
|
||||
"flaky",
|
||||
]
|
||||
|
||||
###############################################################################
|
||||
# ruff
|
||||
###############################################################################
|
||||
|
|
|
@ -4,6 +4,7 @@ pytest>=6.0
|
|||
pytest-cov>=3.0.0
|
||||
pytest-django>=4.5.0
|
||||
pytest-selenium>=4.0.0
|
||||
pytest-rerunfailures>=13.0
|
||||
pre-commit>=2.7
|
||||
model-bakery>=1.1
|
||||
invoke>=2.0.0
|
||||
|
|
|
@ -78,6 +78,7 @@ packaging==23.2
|
|||
# black
|
||||
# build
|
||||
# pytest
|
||||
# pytest-rerunfailures
|
||||
pathspec==0.12.1
|
||||
# via black
|
||||
pip-tools==7.3.0
|
||||
|
@ -102,6 +103,7 @@ pytest==7.4.4
|
|||
# pytest-django
|
||||
# pytest-html
|
||||
# pytest-metadata
|
||||
# pytest-rerunfailures
|
||||
# pytest-selenium
|
||||
# pytest-variables
|
||||
pytest-base-url==2.0.0
|
||||
|
@ -114,6 +116,8 @@ pytest-html==4.1.1
|
|||
# via pytest-selenium
|
||||
pytest-metadata==3.0.0
|
||||
# via pytest-html
|
||||
pytest-rerunfailures==13.0
|
||||
# via -r requirements-dev.in
|
||||
pytest-selenium==4.0.2
|
||||
# via -r requirements-dev.in
|
||||
pytest-variables==3.0.0
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import time
|
||||
|
||||
import freezegun
|
||||
import pytest
|
||||
from django.urls import reverse
|
||||
from pytest_django.live_server_helper import LiveServer
|
||||
from selenium.webdriver import ActionChains, Keys
|
||||
|
@ -20,6 +21,7 @@ from purchase.tests.factories import (
|
|||
)
|
||||
|
||||
|
||||
@pytest.mark.flaky(reruns=5)
|
||||
@freezegun.freeze_time("2022-09-24 19:01:00+0200")
|
||||
def test_cashier_create_and_update_basket( # noqa: PLR0915
|
||||
live_server: LiveServer,
|
||||
|
|
Loading…
Reference in a new issue