From b7e58b0a5b33a1ca44d7de95f36ad508ca1f7df4 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Mon, 20 Jun 2016 10:07:37 +0100 Subject: [PATCH] Unroll unneccessary for loop --- tests/app/main/views/test_dashboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/app/main/views/test_dashboard.py b/tests/app/main/views/test_dashboard.py index ca607cc50..3ccb58fd8 100644 --- a/tests/app/main/views/test_dashboard.py +++ b/tests/app/main/views/test_dashboard.py @@ -178,8 +178,8 @@ def test_should_show_recent_jobs_on_dashboard( "applicants.ods", "thisisatest.csv", )): - for string in (filename, 'Uploaded 1 January at 11:09'): - assert string in table_rows[index].find_all('th')[0].text + assert filename in table_rows[index].find_all('th')[0].text + assert 'Uploaded 1 January at 11:09' in table_rows[index].find_all('th')[0].text for column_index, count in enumerate((1, 0, 0)): assert table_rows[index].find_all('td')[column_index].text.strip() == str(count)