@@ -41,26 +41,28 @@ async def client():
4141
4242
4343async def test_emailpassword_router (client : TestClient ):
44- args = get_st_init_args ([
45- session .init (get_token_transfer_method = lambda * _ : "cookie" ),
46- emailpassword .init ()
47- ])
44+ args = get_st_init_args (
45+ [
46+ session .init (get_token_transfer_method = lambda * _ : "cookie" ),
47+ emailpassword .init (),
48+ ]
49+ )
4850 init (** args )
4951 start_st ()
5052
5153 res = client .post (
5254 "/auth/public/signup" ,
5355 headers = {"Content-Type" : "application/json" },
5456 json = {
55- "formFields" : [
56- {"id" : "password" , "value" : "password1" },
57- {
"id" :
"email" ,
"value" :
"[email protected] " },
58- ]
57+ "formFields" : [
58+ {"id" : "password" , "value" : "password1" },
59+ {
"id" :
"email" ,
"value" :
"[email protected] " },
60+ ]
5961 },
6062 )
6163
6264 assert res .status_code == 200
63- assert res .json ()[' status' ] == "OK"
65+ assert res .json ()[" status" ] == "OK"
6466
6567 res = client .post (
6668 "/auth/signup" ,
@@ -74,14 +76,17 @@ async def test_emailpassword_router(client: TestClient):
7476 )
7577
7678 assert res .status_code == 200
77- assert res .json ()['status' ] == "OK"
79+ assert res .json ()["status" ] == "OK"
80+
7881
7982async def test_dashboard_apis_router (client : TestClient ):
80- args = get_st_init_args ([
81- session .init (get_token_transfer_method = lambda * _ : "cookie" ),
82- emailpassword .init (),
83- dashboard .init (),
84- ])
83+ args = get_st_init_args (
84+ [
85+ session .init (get_token_transfer_method = lambda * _ : "cookie" ),
86+ emailpassword .init (),
87+ dashboard .init (),
88+ ]
89+ )
8590 init (** args )
8691 start_st ()
8792
@@ -96,8 +101,8 @@ async def test_dashboard_apis_router(client: TestClient):
96101 },
97102 )
98103
99- assert res .status_code == 200 # FIXME: failing test
100- assert res .json ()[' status' ] == "OK"
104+ assert res .status_code == 200 # FIXME: failing test
105+ assert res .json ()[" status" ] == "OK"
101106
102107 res = client .post (
103108 "/auth/dashboard/api/signin" ,
@@ -111,4 +116,4 @@ async def test_dashboard_apis_router(client: TestClient):
111116 )
112117
113118 assert res .status_code == 200 # FIXME: failing test
114- assert res .json ()[' status' ] == "OK"
119+ assert res .json ()[" status" ] == "OK"
0 commit comments