|
17 | 17 | from apache_pytest import need_min_apache_version, need_module, t_cmp |
18 | 18 |
|
19 | 19 | CASES = [ |
20 | | - ("/apache/ratelimit/", 200, "ratelimited small file", False), |
21 | | - ("/apache/ratelimit/autoindex/", 200, "ratelimited small autoindex output", False), |
22 | | - ("/apache/ratelimit/chunk?0,8192", 200, "ratelimited chunked response", True), |
| 20 | + ("/apache/ratelimit/", 200, "ratelimited small file"), |
| 21 | + ("/apache/ratelimit/autoindex/", 200, "ratelimited small autoindex output"), |
| 22 | + ("/apache/ratelimit/chunk?0,8192", 200, "ratelimited chunked response"), |
23 | 23 | ] |
24 | 24 |
|
25 | 25 |
|
26 | 26 | @need_module("ratelimit", "autoindex") |
27 | 27 | @need_min_apache_version("2.4.35") |
28 | | -@pytest.mark.parametrize("url,code,desc,needs_cmod", CASES, ids=[c[2] for c in CASES]) |
29 | | -def test_ratelimit(http, url, code, desc, needs_cmod): |
30 | | - if needs_cmod and not http.have_module("random_chunk"): |
31 | | - pytest.skip("random_chunk C test module not available") |
| 28 | +@pytest.mark.parametrize("url,code,desc", CASES, ids=[c[2] for c in CASES]) |
| 29 | +def test_ratelimit(http, url, code, desc): |
32 | 30 | r = http.GET(url) |
33 | 31 | assert t_cmp(r.status_code, code), desc |
0 commit comments