From f48c6619803176fc3e97fac3629c21089e4447cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 18 Aug 2019 12:20:48 +0200 Subject: [PATCH] tests: check against text version of responses (#35425) --- tests/test_dataviz.py | 2 +- tests/test_gallery_cell.py | 16 ++++++++-------- tests/test_lingo_manager.py | 4 ++-- tests/test_lingo_payment.py | 10 +++++----- tests/test_manager.py | 4 ++-- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/tests/test_dataviz.py b/tests/test_dataviz.py index a985dd37..558505df 100644 --- a/tests/test_dataviz.py +++ b/tests/test_dataviz.py @@ -228,7 +228,7 @@ def test_chartng_cell_view(app, normal_user): cell.chart_type = 'table' cell.save() resp = app.get('/') - assert '222' in resp.body + assert '222' in resp.text def test_chartng_cell_manager(app, admin_user): diff --git a/tests/test_gallery_cell.py b/tests/test_gallery_cell.py index 463faf15..54143bc0 100644 --- a/tests/test_gallery_cell.py +++ b/tests/test_gallery_cell.py @@ -22,9 +22,9 @@ def test_adding_gallery_images(app, admin_user): app.post(reverse('combo-gallery-image-add', kwargs={'gallery_pk': cell.id}), params={'image': ['foo'], 'title': 'white'}, status=403) app = login(app) - mgr = app.get(reverse('combo-manager-page-edit-cell', kwargs={'page_pk': page.id, 'cell_reference': cell.get_reference()}), status=200) - assert '