@@ -314,15 +314,15 @@ def test_list_open_cases(self, m):
314
314
"start_date" : datetime .date .fromisoformat (self .zaak2 ["startdatum" ]),
315
315
"end_date" : None ,
316
316
"identificatie" : self .zaak2 ["identificatie" ],
317
- "description" : self .zaak2 ["omschrijving" ],
317
+ "description" : self .zaaktype ["omschrijving" ],
318
318
"current_status" : self .status_type1 ["omschrijving" ],
319
319
},
320
320
{
321
321
"uuid" : self .zaak1 ["uuid" ],
322
322
"start_date" : datetime .date .fromisoformat (self .zaak1 ["startdatum" ]),
323
323
"end_date" : None ,
324
324
"identificatie" : self .zaak1 ["identificatie" ],
325
- "description" : self .zaak1 ["omschrijving" ],
325
+ "description" : self .zaaktype ["omschrijving" ],
326
326
"current_status" : self .status_type1 ["omschrijving" ],
327
327
},
328
328
],
@@ -403,7 +403,7 @@ def test_list_closed_cases(self, m):
403
403
"start_date" : datetime .date .fromisoformat (self .zaak3 ["startdatum" ]),
404
404
"end_date" : datetime .date .fromisoformat (self .zaak3 ["einddatum" ]),
405
405
"identificatie" : self .zaak3 ["identificatie" ],
406
- "description" : self .zaak3 ["omschrijving" ],
406
+ "description" : self .zaaktype ["omschrijving" ],
407
407
"current_status" : self .status_type2 ["omschrijving" ],
408
408
},
409
409
],
@@ -482,13 +482,12 @@ def test_list_cases_paginated(self, m):
482
482
"start_date" : datetime .date .fromisoformat (self .zaak2 ["startdatum" ]),
483
483
"end_date" : None ,
484
484
"identificatie" : self .zaak2 ["identificatie" ],
485
- "description" : self .zaak2 ["omschrijving" ],
485
+ "description" : self .zaaktype ["omschrijving" ],
486
486
"current_status" : self .status_type1 ["omschrijving" ],
487
487
},
488
488
],
489
489
)
490
490
self .assertNotContains (response_1 , self .zaak1 ["identificatie" ])
491
- self .assertNotContains (response_1 , self .zaak1 ["omschrijving" ])
492
491
self .assertContains (response_1 , "?page=2" )
493
492
494
493
# 2. test next page
@@ -503,13 +502,12 @@ def test_list_cases_paginated(self, m):
503
502
"start_date" : datetime .date .fromisoformat (self .zaak1 ["startdatum" ]),
504
503
"end_date" : None ,
505
504
"identificatie" : self .zaak1 ["identificatie" ],
506
- "description" : self .zaak1 ["omschrijving" ],
505
+ "description" : self .zaaktype ["omschrijving" ],
507
506
"current_status" : self .status_type1 ["omschrijving" ],
508
507
},
509
508
],
510
509
)
511
510
self .assertNotContains (response_2 , self .zaak2 ["identificatie" ])
512
- self .assertNotContains (response_2 , self .zaak2 ["omschrijving" ])
513
511
self .assertContains (response_2 , "?page=1" )
514
512
515
513
@patch .object (CaseListMixin , "paginate_by" , 1 )
0 commit comments