fix query param testing once and for all. hopefully

try and avoid comparing URLs as much as possible cos its hard
This commit is contained in:
Leo Hemsted
2016-10-06 10:29:54 +01:00
parent aa458a15da
commit 479623ee99

View File

@@ -27,7 +27,7 @@ def test_should_return_list_of_all_real_jobs(
assert response.status_code == 200
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
assert page.h1.string == 'Uploaded files'
jobs = [x.text for x in page.tbody.find_all('a', {'class':'file-list-filename'})]
jobs = [x.text for x in page.tbody.find_all('a', {'class': 'file-list-filename'})]
assert len(jobs) == 4
assert 'Test message' not in jobs