File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -342,22 +342,22 @@ async def test_has_correct_node_root_field():
342
342
343
343
344
344
def test_to_global_id_converts_unicode_strings_correctly ():
345
- my_unicode_id = u 'ûñö'
345
+ my_unicode_id = 'ûñö'
346
346
g_id = to_global_id ('MyType' , my_unicode_id )
347
347
assert g_id == 'TXlUeXBlOsO7w7HDtg=='
348
348
349
- my_unicode_id = u '\u06ED '
349
+ my_unicode_id = '\u06ED '
350
350
g_id = to_global_id ('MyType' , my_unicode_id )
351
351
assert g_id == 'TXlUeXBlOtut'
352
352
353
353
354
354
def test_from_global_id_converts_unicode_strings_correctly ():
355
- my_unicode_id = u 'ûñö'
355
+ my_unicode_id = 'ûñö'
356
356
my_type , my_id = from_global_id ('TXlUeXBlOsO7w7HDtg==' )
357
357
assert my_type == 'MyType'
358
358
assert my_id == my_unicode_id
359
359
360
- my_unicode_id = u '\u06ED '
360
+ my_unicode_id = '\u06ED '
361
361
my_type , my_id = from_global_id ('TXlUeXBlOtut' )
362
362
assert my_type == 'MyType'
363
363
assert my_id == my_unicode_id
Original file line number Diff line number Diff line change 7
7
8
8
9
9
def test_base64_encode_unicode_strings_correctly ():
10
- my_unicode = u 'ûñö'
10
+ my_unicode = 'ûñö'
11
11
my_base64 = utils .base64 (my_unicode )
12
12
assert my_base64 == base64 .b64encode (my_unicode .encode ('utf-8' )).decode ('utf-8' )
13
13
14
- my_unicode = u '\u06ED '
14
+ my_unicode = '\u06ED '
15
15
my_base64 = utils .base64 (my_unicode )
16
16
assert my_base64 == base64 .b64encode (my_unicode .encode ('utf-8' )).decode ('utf-8' )
17
17
@@ -23,7 +23,7 @@ def test_base64_encode_strings_correctly():
23
23
24
24
25
25
def test_unbase64_decodes_unicode_strings_correctly ():
26
- my_unicode = u 'ûñö'
26
+ my_unicode = 'ûñö'
27
27
my_converted_unicode = utils .unbase64 (utils .base64 (my_unicode ))
28
28
assert my_unicode == my_converted_unicode
29
29
You can’t perform that action at this time.
0 commit comments