@@ -159,13 +159,13 @@ async fn test_anonymous_viewer(pool: PgPool) {
159159 let state = TestState :: from_pool ( pool) . await . unwrap ( ) ;
160160
161161 let req = Request :: post ( "/graphql" ) . json ( serde_json:: json!( {
162- "query" : r# "
162+ "query" : r"
163163 query {
164164 viewer {
165165 __typename
166166 }
167167 }
168- "# ,
168+ " ,
169169 } ) ) ;
170170
171171 let response = state. request ( req) . await ;
@@ -199,7 +199,7 @@ async fn test_oauth2_viewer(pool: PgPool) {
199199 let req = Request :: post ( "/graphql" )
200200 . bearer ( & access_token)
201201 . json ( serde_json:: json!( {
202- "query" : r# "
202+ "query" : r"
203203 query {
204204 viewer {
205205 __typename
@@ -210,7 +210,7 @@ async fn test_oauth2_viewer(pool: PgPool) {
210210 }
211211 }
212212 }
213- "# ,
213+ " ,
214214 } ) ) ;
215215
216216 let response = state. request ( req) . await ;
@@ -246,13 +246,13 @@ async fn test_oauth2_no_scope(pool: PgPool) {
246246 let req = Request :: post ( "/graphql" )
247247 . bearer ( & access_token)
248248 . json ( serde_json:: json!( {
249- "query" : r# "
249+ "query" : r"
250250 query {
251251 viewer {
252252 __typename
253253 }
254254 }
255- "# ,
255+ " ,
256256 } ) ) ;
257257
258258 let response = state. request ( req) . await ;
@@ -294,14 +294,14 @@ async fn test_oauth2_admin(pool: PgPool) {
294294 let request = Request :: post ( "/graphql" )
295295 . bearer ( & access_token)
296296 . json ( serde_json:: json!( {
297- "query" : r# "
297+ "query" : r"
298298 query UserQuery($id: ID) {
299299 user(id: $id) {
300300 id
301301 username
302302 }
303303 }
304- "# ,
304+ " ,
305305 "variables" : {
306306 "id" : format!( "user:{id}" , id = user2. id) ,
307307 } ,
@@ -324,14 +324,14 @@ async fn test_oauth2_admin(pool: PgPool) {
324324 let request = Request :: post ( "/graphql" )
325325 . bearer ( & access_token_admin)
326326 . json ( serde_json:: json!( {
327- "query" : r# "
327+ "query" : r"
328328 query UserQuery($id: ID) {
329329 user(id: $id) {
330330 id
331331 username
332332 }
333333 }
334- "# ,
334+ " ,
335335 "variables" : {
336336 "id" : format!( "user:{id}" , id = user2. id) ,
337337 } ,
@@ -392,7 +392,7 @@ async fn test_oauth2_client_credentials(pool: PgPool) {
392392 let request = Request :: post ( "/graphql" )
393393 . bearer ( & access_token)
394394 . json ( serde_json:: json!( {
395- "query" : r# "
395+ "query" : r"
396396 query {
397397 viewer {
398398 __typename
@@ -402,7 +402,7 @@ async fn test_oauth2_client_credentials(pool: PgPool) {
402402 __typename
403403 }
404404 }
405- "# ,
405+ " ,
406406 } ) ) ;
407407
408408 let response = state. request ( request) . await ;
@@ -459,7 +459,7 @@ async fn test_oauth2_client_credentials(pool: PgPool) {
459459 let request = Request :: post ( "/graphql" )
460460 . bearer ( & access_token)
461461 . json ( serde_json:: json!( {
462- "query" : r# "
462+ "query" : r"
463463 query {
464464 viewer {
465465 __typename
@@ -469,7 +469,7 @@ async fn test_oauth2_client_credentials(pool: PgPool) {
469469 __typename
470470 }
471471 }
472- "# ,
472+ " ,
473473 } ) ) ;
474474
475475 let response = state. request ( request) . await ;
@@ -535,14 +535,14 @@ async fn test_oauth2_client_credentials(pool: PgPool) {
535535 let request = Request :: post ( "/graphql" )
536536 . bearer ( & access_token)
537537 . json ( serde_json:: json!( {
538- "query" : r# "
538+ "query" : r"
539539 mutation CreateSession($userId: String!, $scope: String!) {
540540 createOauth2Session(input: {userId: $userId, permanent: true, scope: $scope}) {
541541 accessToken
542542 refreshToken
543543 }
544544 }
545- "# ,
545+ " ,
546546 "variables" : {
547547 "userId" : user_id,
548548 "scope" : "urn:matrix:org.matrix.msc2967.client:device:AABBCCDDEE urn:matrix:org.matrix.msc2967.client:api:* urn:synapse:admin:*"
0 commit comments