tests: fix null character in charfield (#30458)
This commit is contained in:
parent
fe2772afb5
commit
3a6c697add
|
@ -559,13 +559,13 @@ def test_query_error(app, setup, filetype):
|
|||
assert response.json['data']['name'] == 'id'
|
||||
assert response.json['data']['expr'] == 'prenom.'
|
||||
|
||||
query.projections = 'id:prenom\0'
|
||||
query.projections = 'id:prenom not'
|
||||
query.save()
|
||||
response = app.get(url)
|
||||
assert response.json['err'] == 1
|
||||
assert response.json['err_desc'] == 'invalid projection expression'
|
||||
assert response.json['data']['name'] == 'id'
|
||||
assert response.json['data']['expr'] == 'prenom\0'
|
||||
assert response.json['data']['expr'] == 'prenom not'
|
||||
|
||||
query.projections = 'id:zob'
|
||||
query.save()
|
||||
|
|
Loading…
Reference in New Issue