Unroll unneccessary for loop

This commit is contained in:
Chris Hill-Scott
2016-06-20 10:07:37 +01:00
parent 7416070199
commit b7e58b0a5b

View File

@@ -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)