From 2bfe3f6aee82f2e69df3262d937be831146f904b Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Tue, 26 May 2020 22:26:22 +0200 Subject: [PATCH] add comments --- devices/tests/test_warranty_list.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devices/tests/test_warranty_list.py b/devices/tests/test_warranty_list.py index 06f20f0..f508324 100644 --- a/devices/tests/test_warranty_list.py +++ b/devices/tests/test_warranty_list.py @@ -52,6 +52,7 @@ def test_warranties_view_warranty_expired(create_admin_user): client = Client() client.login(username="pharma-admin", password="password") response = client.get('/warranties/') + # Problems with the bgcolor attribute prevent the use of helper.in_content assert (response.status_code == 200 and ('bgcolor="red"' in response.content.decode('utf8'))) @@ -68,5 +69,6 @@ def test_warranties_view_warranty_one_year_till_expiration(create_admin_user): client = Client() client.login(username="pharma-admin", password="password") response = client.get('/warranties/') + # Problems with the bgcolor attribute prevent the use of helper.in_content assert (response.status_code == 200 and ('bgcolor="orange"' in response.content.decode('utf8')))