upstash / redis-py

HTTP based Python Redis Client for Serverless and Edge Functions
https://docs.upstash.com/redis
MIT License
29 stars 3 forks source link

Fix bitop test failing because of old api #37

Closed ytkimirti closed 10 months ago

ytkimirti commented 10 months ago

Old rest api probably returned the binary result even thought it was invalid utf8. Hence the old code

assert await response.text() == r'{"result":"\x9e\x9d\x9c\x9b"}'

Currently if base64 encoding is not set, it returns � (replacement character), so the test fails.