Skip to content

Commit

Permalink
Fix mypy warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
wRAR committed Jan 24, 2025
1 parent 9758d36 commit e9b274d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,7 @@ def test_url_query_parameter_2(self):
aff_url2,
"http://www.argos.co.uk/webapp/wcs/stores/servlet/ArgosCreateReferral?storeId=10001&langId=-1&referrer=COJUN&params=adref%3DGarden and DIY->Garden furniture->Garden table and chair sets&referredURL=http://www.argos.co.uk/webapp/wcs/stores/servlet/ProductDisplay%3FstoreId%3D10001%26catalogId%3D1500001501%26productId%3D1500357199%26langId%3D-1",
)
assert aff_url2 is not None
prod_url = url_query_parameter(aff_url2, "referredURL")
self.assertEqual(
prod_url,
Expand All @@ -891,6 +892,7 @@ def test_url_query_parameter_2(self):
aff_url2,
"http://www.argos.co.uk/webapp/wcs/stores/servlet/ArgosCreateReferral?storeId=10001&langId=-1&referrer=COJUN&params=adref%3DGarden and DIY->Garden furniture->Children's garden furniture&referredURL=http://www.argos.co.uk/webapp/wcs/stores/servlet/ProductDisplay%3FstoreId%3D10001%26catalogId%3D1500001501%26productId%3D1500357023%26langId%3D-1",
)
assert aff_url2 is not None
prod_url = url_query_parameter(aff_url2, "referredURL")
# fails, prod_url is None now
self.assertEqual(
Expand Down

0 comments on commit e9b274d

Please sign in to comment.