Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update test to --baseurl instead of pytest paramtrize

  • Loading branch information...
commit aa31c965d57f239823b8d81991c44504b638e66e 1 parent 4a0c882
@m8ttyB m8ttyB authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 tests/test_redirects.py
View
5 tests/test_redirects.py
@@ -14,14 +14,13 @@
class TestRedirects(Base):
- @pytest.mark.parametrize('url', ["http://download.allizom.org/", "https://download.allizom.org/"])
- def test_that_checks_redirect_using_incorrect_query_values(self, url):
+ def test_that_checks_redirect_using_incorrect_query_values(self, testsetup):
param = {
'product': 'firefox-16.0b6',
'lang': 'kitty_language',
'os': 'stella'
}
-
+ url = testsetup.base_url
response = self._head_request(url, params=param)
Assert.equal(response.status_code, requests.codes.not_found, 'Failed on %s \nUsing %s' % (url, param))

0 comments on commit aa31c96

Please sign in to comment.
Something went wrong with that request. Please try again.