Project

General

Profile

0012-tests-fix-null-character-in-charfield-30458.patch

Benjamin Dauvergne, 08 Feb 2019 08:43 AM

Download (1.11 KB)

View differences:

Subject: [PATCH 12/13] tests: fix null character in charfield (#30458)

 tests/test_csv_datasource.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/test_csv_datasource.py
559 559
    assert response.json['data']['name'] == 'id'
560 560
    assert response.json['data']['expr'] == 'prenom.'
561 561

  
562
    query.projections = 'id:prenom\0'
562
    query.projections = 'id:prenom not'
563 563
    query.save()
564 564
    response = app.get(url)
565 565
    assert response.json['err'] == 1
566 566
    assert response.json['err_desc'] == 'invalid projection expression'
567 567
    assert response.json['data']['name'] == 'id'
568
    assert response.json['data']['expr'] == 'prenom\0'
568
    assert response.json['data']['expr'] == 'prenom not'
569 569

  
570 570
    query.projections = 'id:zob'
571 571
    query.save()
572
-