|
|
|
@ -1,6 +1,7 @@ |
|
|
|
import importlib |
|
|
|
|
|
|
|
import pytest |
|
|
|
from dirty_equals import IsOneOf |
|
|
|
from fastapi.testclient import TestClient |
|
|
|
from inline_snapshot import snapshot |
|
|
|
|
|
|
|
@ -66,7 +67,9 @@ def test_header_param_model_no_underscore(client: TestClient): |
|
|
|
"traceparent": "123", |
|
|
|
"x_tag": [], |
|
|
|
"accept": "*/*", |
|
|
|
"accept-encoding": "gzip, deflate", |
|
|
|
"accept-encoding": IsOneOf( |
|
|
|
"gzip, deflate", "gzip, deflate, zstd" |
|
|
|
), |
|
|
|
"connection": "keep-alive", |
|
|
|
"user-agent": "testclient", |
|
|
|
"save-data": "true", |
|
|
|
@ -105,7 +108,9 @@ def test_header_param_model_invalid(client: TestClient): |
|
|
|
"x_tag": [], |
|
|
|
"host": "testserver", |
|
|
|
"accept": "*/*", |
|
|
|
"accept-encoding": "gzip, deflate", |
|
|
|
"accept-encoding": IsOneOf( |
|
|
|
"gzip, deflate", "gzip, deflate, zstd" |
|
|
|
), |
|
|
|
"connection": "keep-alive", |
|
|
|
"user-agent": "testclient", |
|
|
|
}, |
|
|
|
|