def test_url(patch_openweather, params, vals):
    """Test that url is created correctly."""
    widget = patch_openweather.OpenWeather(**params)
    url = widget.url
    for val in vals:
        assert val in url
Test that url is created correctly.
test/widgets/test_openweather.py