File tree Expand file tree Collapse file tree 4 files changed +4
-6
lines changed
FrameworkSystem/private/standardLogging/test Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -63,11 +63,11 @@ dependencies:
63
63
- pytest >=3.6
64
64
- pytest-cov >=2.2.0
65
65
- pytest-mock
66
+ - pytest-rerunfailures
66
67
- setuptools-scm
67
68
- shellcheck
68
69
- typer
69
70
- typer-cli
70
- - flaky
71
71
# docs
72
72
- pygments >=1.5
73
73
- sphinx
Original file line number Diff line number Diff line change @@ -85,13 +85,13 @@ server =
85
85
tornado-m2crypto
86
86
importlib_resources
87
87
testing =
88
- flaky
89
88
hypothesis
90
89
mock
91
90
parameterized
92
91
pytest
93
92
pytest-cov
94
93
pytest-mock
94
+ pytest-rerunfailures
95
95
pycodestyle
96
96
97
97
[options.entry_points]
Original file line number Diff line number Diff line change 5
5
from subprocess import Popen
6
6
7
7
import pytest
8
- from flaky import flaky
9
8
10
9
import DIRAC
11
10
from DIRAC .Core .Utilities .Profiler import Profiler
@@ -78,7 +77,7 @@ def test_base():
78
77
assert resWC ["Value" ] >= res ["Value" ]
79
78
80
79
81
- @flaky (max_runs = 10 , min_passes = 2 )
80
+ @pytest . mark . flaky (reruns = 10 )
82
81
def test_cpuUsage ():
83
82
mainProcess = Popen (
84
83
[
Original file line number Diff line number Diff line change 2
2
Test SubLogger
3
3
"""
4
4
import pytest
5
- from flaky import flaky
6
5
from DIRAC .FrameworkSystem .private .standardLogging .LogLevels import LogLevels
7
6
8
7
@@ -52,7 +51,7 @@ def test_getSubLoggerObject():
52
51
# Run the tests for all the log levels and exceptions
53
52
# We may need to rerun the test if we are unlucky and the timestamps
54
53
# don't match
55
- @flaky (max_runs = 3 )
54
+ @pytest . mark . flaky (reruns = 3 )
56
55
@pytest .mark .parametrize ("logLevel" , ["exception" ] + [lvl .lower () for lvl in LogLevels .getLevelNames ()])
57
56
def test_localSubLoggerObject (logLevel ):
58
57
"""
You can’t perform that action at this time.
0 commit comments