File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Expand file tree Collapse file tree 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
2222 default=
2323 ;;
2424
25- ratelimiting )
26- ratelimiting =true
25+ slow )
26+ slow =true
2727 default=
2828 ;;
2929
4747
4848# Run the test suite
4949if [ ${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 "
5252fi
5353
5454# 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 "
5858fi
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def rate_limit_detected(w):
4444
4545
4646# Tests
47- @pytest .mark .ratelimit
47+ @pytest .mark .slow
4848def test_rate_limit_retry (api , list_of_rooms , add_rooms ):
4949 # Save state and initialize test setup
5050 original_wait_on_rate_limit = api ._session .wait_on_rate_limit
You can’t perform that action at this time.
0 commit comments