File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -741,13 +741,11 @@ async def test_that_verify_session_doesnt_always_call_core():
741
741
async def test_anti_csrf_header_via_custom_header_check_happens_only_when_access_token_is_provided (
742
742
driver_config_client : TestClient ,
743
743
):
744
- args = get_st_init_args ([session .init (anti_csrf = "VIA_CUSTOM_HEADER" , get_token_transfer_method = lambda * _ : "cookie" )]) # type: ignore
744
+ args = get_st_init_args ([session .init (anti_csrf = "VIA_CUSTOM_HEADER" , get_token_transfer_method = lambda * _ : "cookie" )]) # type: ignore
745
745
init (** args ) # type: ignore
746
746
start_st ()
747
747
748
- response = driver_config_client .post (
749
- "/create"
750
- )
748
+ response = driver_config_client .post ("/create" )
751
749
assert response .status_code == 200
752
750
753
751
# With access token:
@@ -757,7 +755,8 @@ async def test_anti_csrf_header_via_custom_header_check_happens_only_when_access
757
755
assert response .json () == {"message" : "try refresh token" }
758
756
759
757
# with RID:
760
- response = driver_config_client .post ("/sessioninfo-optional" ,
758
+ response = driver_config_client .post (
759
+ "/sessioninfo-optional" ,
761
760
headers = {
762
761
"rid" : "session" ,
763
762
},
You can’t perform that action at this time.
0 commit comments