@@ -23,7 +23,9 @@ def test_stdin_bad_json(runner, httpserver):
2323def test_auth_headers (runner , httpserver , simple_user_payload ):
2424 """Test passing auth bearer headers."""
2525 httpserver .expect_request (
26- "/Users/foobar" , method = "GET" , headers = {"Authorization" : "Bearer token" }
26+ "/Users/foobar" ,
27+ method = "GET" ,
28+ headers = {"Authorization" : "Bearer token" , "foo" : "bar" },
2729 ).respond_with_json (
2830 simple_user_payload ("foobar" ),
2931 status = 200 ,
@@ -47,8 +49,10 @@ def test_auth_headers(runner, httpserver, simple_user_payload):
4749 [
4850 "--url" ,
4951 httpserver .url_for ("/" ),
50- "--headers " ,
52+ "--header " ,
5153 "Authorization: Bearer token" ,
54+ "--header" ,
55+ "foo: bar" ,
5256 "query" ,
5357 "user" ,
5458 "foobar" ,
@@ -60,7 +64,9 @@ def test_auth_headers(runner, httpserver, simple_user_payload):
6064def test_env_vars (runner , httpserver , simple_user_payload ):
6165 """Test passing host and headers with environment vars."""
6266 httpserver .expect_request (
63- "/Users/foobar" , method = "GET" , headers = {"Authorization" : "Bearer token" }
67+ "/Users/foobar" ,
68+ method = "GET" ,
69+ headers = {"Authorization" : "Bearer token" , "foo" : "bar" },
6470 ).respond_with_json (
6571 simple_user_payload ("foobar" ),
6672 status = 200 ,
0 commit comments