mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-11 04:07:57 +03:00
Encode strings before passing to b64encode.
This commit is contained in:
parent
980142dfcf
commit
83a2ad34cd
|
@ -950,13 +950,13 @@ def test_proxy_model_support():
|
||||||
expected = {
|
expected = {
|
||||||
"allReporters": {
|
"allReporters": {
|
||||||
"edges": [
|
"edges": [
|
||||||
{"node": {"id": base64.b64encode("ReporterType:{}".format(reporter.id))}},
|
{"node": {"id": base64.b64encode("ReporterType:{}".format(reporter.id).encode())}},
|
||||||
{"node": {"id": base64.b64encode("ReporterType:{}".format(cnn_reporter.id))}},
|
{"node": {"id": base64.b64encode("ReporterType:{}".format(cnn_reporter.id).encode())}},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"cnnReporters": {
|
"cnnReporters": {
|
||||||
"edges": [
|
"edges": [
|
||||||
{"node": {"id": base64.b64encode("CNNReporterType:{}".format(cnn_reporter.id))}}
|
{"node": {"id": base64.b64encode("CNNReporterType:{}".format(cnn_reporter.id).encode())}}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user