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)