aboutsummaryrefslogtreecommitdiff
path: root/tests/integration/test_gemma.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-03-30 11:28:00 +0300
committerFrederick Muriuki Muriithi2022-03-30 11:41:52 +0300
commit0c6654ec8bd71297ca7d97899933f98d526b6725 (patch)
tree577d312ad9e3c36ccee40bcb9091bbbe3468e3ff /tests/integration/test_gemma.py
parent1d4d6d91172bec1e32fa3632d8c4b13c4e0d31f7 (diff)
downloadgenenetwork3-0c6654ec8bd71297ca7d97899933f98d526b6725.tar.gz
Revert "Run json.loads on request.get_json, since request.get_json was just returning a string"
This reverts commit b93b22386056347d8002dd2e403425beeb4657cd. The appropriate fix should have been in GN2. The original statement args = request.get_json() was correct, since `request.get_json()` should return a python object parsed from the JSON string in the request. Unfortunately, GN2 was encoding the request data two times, which led to the call returning a JSON-encoded string instead of the expected object. The issue has been fixed in GN2 and therefore, the "fix" here can be reverted.
Diffstat (limited to 'tests/integration/test_gemma.py')
0 files changed, 0 insertions, 0 deletions