Skip to content

Commit

Permalink
tests: update code structure
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Aug 31, 2019
1 parent 08c77ca commit 9badbfe
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tcms/testruns/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,11 +335,10 @@ def test_search_page_is_shown(self):
self.assertContains(response, '<input id="id_summary" type="text"')

def test_search_page_is_shown_with_get_parameter_used(self):
product_id = str(self.product.id)
url = self.search_runs_url + '?product=' + product_id
response = self.client.get(url)
response = self.client.get(self.search_runs_url, {'product': self.product.pk})
self.assertContains(response,
'<option value="' + product_id + '" selected>Kiwi</option>',
'<option value="%d" selected>%s</option>' % (self.product.pk,
self.product.name),
html=True)


Expand Down

0 comments on commit 9badbfe

Please sign in to comment.