File tree 3 files changed +12
-8
lines changed 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change
1
+ [pytest]
2
+ addopts = --strict-markers
3
+ markers =
4
+ slow: marks tests as slow (deselect with ' -m "not slow"' )
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ for i in ${@}; do
22
22
default=
23
23
;;
24
24
25
- ratelimiting )
26
- ratelimiting =true
25
+ slow )
26
+ slow =true
27
27
default=
28
28
;;
29
29
47
47
48
48
# Run the test suite
49
49
if [ ${default} ] || [ ${tests} ]; then
50
- echo " ==> Running the test suite"
51
- py.test -s -m " not ratelimit "
50
+ echo " ==> Running the test suite (excluding slow tests) "
51
+ py.test -s -m " not slow "
52
52
fi
53
53
54
54
# Run the rate-limit tests
55
- if [ ${ratelimiting } ]; then
56
- echo " ==> Running the rate-limit tests"
57
- py.test -s -m " ratelimit "
55
+ if [ ${slow } ]; then
56
+ echo " ==> Running the slow tests"
57
+ py.test -s -m " slow "
58
58
fi
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def rate_limit_detected(w):
44
44
45
45
46
46
# Tests
47
- @pytest .mark .ratelimit
47
+ @pytest .mark .slow
48
48
def test_rate_limit_retry (api , list_of_rooms , add_rooms ):
49
49
# Save state and initialize test setup
50
50
original_wait_on_rate_limit = api ._session .wait_on_rate_limit
You can’t perform that action at this time.
0 commit comments