])
r.check_response(count=count, http_status=200)
- @pytest.mark.skipif(condition=Env.slow_network, reason="not suitable for slow network tests")
+ @pytest.mark.skipif(condition=Env().slow_network, reason="not suitable for slow network tests")
@pytest.mark.parametrize("proto", ['http/1.1', 'h2', 'h3'])
def test_02_10_10MB_serial(self, env: Env,
httpd, nghttpx, repeat, proto):
r = curl.http_download(urls=[urln], alpn_proto=proto)
r.check_response(count=count, http_status=200)
- @pytest.mark.skipif(condition=Env.slow_network, reason="not suitable for slow network tests")
+ @pytest.mark.skipif(condition=Env().slow_network, reason="not suitable for slow network tests")
@pytest.mark.parametrize("proto", ['h2', 'h3'])
def test_02_11_10MB_parallel(self, env: Env,
httpd, nghttpx, repeat, proto):
])
r.check_response(count=count, http_status=200)
- @pytest.mark.skipif(condition=Env.slow_network, reason="not suitable for slow network tests")
+ @pytest.mark.skipif(condition=Env().slow_network, reason="not suitable for slow network tests")
def test_02_20_h2_small_frames(self, env: Env, httpd, repeat):
# Test case to reproduce content corruption as observed in
# https://github.com/curl/curl/issues/10525
log = logging.getLogger(__name__)
-@pytest.mark.skipif(condition=Env.slow_network, reason="not suitable for slow network tests")
+@pytest.mark.skipif(condition=Env().slow_network, reason="not suitable for slow network tests")
class TestStuttered:
@pytest.fixture(autouse=True, scope='class')
assert r.total_connects == 1, r.dump_logs()
# download 5MB files sequentially
- @pytest.mark.skipif(condition=Env.slow_network, reason="not suitable for slow network tests")
+ @pytest.mark.skipif(condition=Env().slow_network, reason="not suitable for slow network tests")
@pytest.mark.parametrize("proto", ['h2', 'h3'])
def test_08_04a_download_10mb_sequential(self, env: Env, caddy: Caddy,
repeat, proto):
r.check_response(count=count, http_status=200, connect_count=1)
# download 10MB files sequentially
- @pytest.mark.skipif(condition=Env.slow_network, reason="not suitable for slow network tests")
+ @pytest.mark.skipif(condition=Env().slow_network, reason="not suitable for slow network tests")
@pytest.mark.parametrize("proto", ['h2', 'h3'])
def test_08_04b_download_10mb_sequential(self, env: Env, caddy: Caddy,
repeat, proto):
r.check_response(count=count, http_status=200, connect_count=1)
# download 10MB files parallel
- @pytest.mark.skipif(condition=Env.slow_network, reason="not suitable for slow network tests")
+ @pytest.mark.skipif(condition=Env().slow_network, reason="not suitable for slow network tests")
@pytest.mark.parametrize("proto", ['http/1.1', 'h2', 'h3'])
def test_08_05_download_1mb_parallel(self, env: Env, caddy: Caddy,
repeat, proto):