pytest: give parameterised tests better ids for read- and parsability

Closes #17340
This commit is contained in:
Stefan Eissing 2025-05-13 12:55:16 +02:00 committed by Daniel Stenberg
parent f5b7eb27f0
commit 0c749d8177
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 53 additions and 48 deletions

View file

@ -261,11 +261,11 @@ class TestBasic:
# http: special handling of TE request header
@pytest.mark.parametrize("te_in, te_out", [
['trailers', 'trailers'],
['chunked', None],
['gzip, trailers', 'trailers'],
['gzip ;q=0.2;x="y,x", trailers', 'trailers'],
['gzip ;x="trailers", chunks', None],
pytest.param('trailers', 'trailers', id='trailers'),
pytest.param('chunked', None, id='chunked'),
pytest.param('gzip, trailers', 'trailers', id='gzip+trailers'),
pytest.param('gzip ;q=0.2;x="y,x", trailers', 'trailers', id='gzip+q+x+trailers'),
pytest.param('gzip ;x="trailers", chunks', None, id='gzip+x+chunks'),
])
def test_01_17_TE(self, env: Env, httpd, te_in, te_out):
proto = 'h2'