@@ -363,17 +363,16 @@ def test_filter_icontains_string_with_comma(self):
363
363
"""
364
364
regression test for https://github.com/maykinmedia/objects-api/issues/472
365
365
"""
366
- record = ObjectRecordFactory .create (
366
+ ObjectRecordFactory .create (
367
367
data = {"name" : "Something important" }, object__object_type = self .object_type
368
368
)
369
- ObjectRecordFactory .create (
369
+ record = ObjectRecordFactory .create (
370
370
data = {"name" : "Advies, support en kennis om te weten" },
371
371
object__object_type = self .object_type ,
372
372
)
373
- ObjectRecordFactory .create (data = {}, object__object_type = self .object_type )
374
373
375
374
response = self .client .get (
376
- self .url , {"data_attrs" : "name__icontains__Advies, support en kennis" }
375
+ self .url , {"data_attrs" : "name__icontains__Advies\\ , support en kennis" }
377
376
)
378
377
379
378
self .assertEqual (response .status_code , status .HTTP_200_OK )
@@ -390,19 +389,18 @@ def test_filter_two_icontains_with_comma(self):
390
389
"""
391
390
regression test for https://github.com/maykinmedia/objects-api/issues/472
392
391
"""
393
- record = ObjectRecordFactory .create (
392
+ ObjectRecordFactory .create (
394
393
data = {"name" : "Something important" }, object__object_type = self .object_type
395
394
)
396
- ObjectRecordFactory .create (
395
+ record = ObjectRecordFactory .create (
397
396
data = {"name" : "Advies, support en kennis om te weten" },
398
397
object__object_type = self .object_type ,
399
398
)
400
- ObjectRecordFactory .create (data = {}, object__object_type = self .object_type )
401
399
402
400
response = self .client .get (
403
401
self .url ,
404
402
{
405
- "data_attrs" : "name__icontains__Advies, support en kennis,name__icontains__om"
403
+ "data_attrs" : "name__icontains__Advies\\ , support en kennis,name__icontains__om"
406
404
},
407
405
)
408
406
0 commit comments