diff --git a/src/bmkg/parsers/parse_weather_forecast_data.py b/src/bmkg/parsers/parse_weather_forecast_data.py index 21cb440..d04e61d 100644 --- a/src/bmkg/parsers/parse_weather_forecast_data.py +++ b/src/bmkg/parsers/parse_weather_forecast_data.py @@ -121,6 +121,7 @@ def parse_weather_forecast_data(weather_forecast_data: str | bytes) -> WeatherFo ), parameters["wd"], parameters["ws"], + strict=False, ) ) diff --git a/tests/test_parsers/test_parse_datetime_element.py b/tests/test_parsers/test_parse_datetime_element.py index fb27c15..1ca5911 100644 --- a/tests/test_parsers/test_parse_datetime_element.py +++ b/tests/test_parsers/test_parse_datetime_element.py @@ -15,5 +15,5 @@ def test_parse_element_with_invalid_attribute(): with pytest.raises( WeatherForecastParseError, match="datetime attribute in timerange tag not found" ): - for dt in parse_datetime_element(element): + for _dt in parse_datetime_element(element): pass diff --git a/tests/test_parsers/test_parse_humidity_element.py b/tests/test_parsers/test_parse_humidity_element.py index b02fa2b..91108d4 100644 --- a/tests/test_parsers/test_parse_humidity_element.py +++ b/tests/test_parsers/test_parse_humidity_element.py @@ -15,7 +15,7 @@ def test_parse_element_with_invalid_attribute(): with pytest.raises( WeatherForecastParseError, match="value tag in timerange tag not found" ): - for humidity in parse_humidity_element(element): + for _humidity in parse_humidity_element(element): pass @@ -31,5 +31,5 @@ def test_parse_element_with_invalid_humidity_text(): with pytest.raises( WeatherForecastParseError, match="value tag in timerange tag has no text" ): - for humidity in parse_humidity_element(element): + for _humidity in parse_humidity_element(element): pass diff --git a/tests/test_parsers/test_parse_temperature_element.py b/tests/test_parsers/test_parse_temperature_element.py index fd770aa..b0efc99 100644 --- a/tests/test_parsers/test_parse_temperature_element.py +++ b/tests/test_parsers/test_parse_temperature_element.py @@ -19,7 +19,7 @@ def test_parse_element_with_invalid_attribute(): WeatherForecastParseError, match="one or more value tag in timerange tag not found", ): - for temperature in parse_temperature_element(element): + for _temperature in parse_temperature_element(element): pass @@ -49,5 +49,5 @@ def test_parse_element_with_invalid_value_elements_text(index, err_msg): WeatherForecastParseError, match=err_msg, ): - for temperature in parse_temperature_element(element): + for _temperature in parse_temperature_element(element): pass diff --git a/tests/test_parsers/test_parse_weather_element.py b/tests/test_parsers/test_parse_weather_element.py index 9dacd43..4bef1fb 100644 --- a/tests/test_parsers/test_parse_weather_element.py +++ b/tests/test_parsers/test_parse_weather_element.py @@ -15,7 +15,7 @@ def test_parse_element_with_invalid_attribute(): with pytest.raises( WeatherForecastParseError, match="value tag in timerange tag not found" ): - for weather in parse_weather_element(element): + for _weather in parse_weather_element(element): pass @@ -31,5 +31,5 @@ def test_parse_element_with_invalid_weather_text(): with pytest.raises( WeatherForecastParseError, match="value tag in timerange tag has no text" ): - for weather in parse_weather_element(element): + for _weather in parse_weather_element(element): pass diff --git a/tests/test_parsers/test_parse_wind_direction_element.py b/tests/test_parsers/test_parse_wind_direction_element.py index b451630..80dca62 100644 --- a/tests/test_parsers/test_parse_wind_direction_element.py +++ b/tests/test_parsers/test_parse_wind_direction_element.py @@ -19,7 +19,7 @@ def test_parse_element_with_invalid_attribute(): WeatherForecastParseError, match="one or more value tag in timerange tag not found", ): - for wind_direction in parse_wind_direction_element(element): + for _wind_direction in parse_wind_direction_element(element): pass @@ -50,5 +50,5 @@ def test_parse_element_with_invalid_value_elements_text(index, err_msg): WeatherForecastParseError, match=err_msg, ): - for wind_direction in parse_wind_direction_element(element): + for _wind_direction in parse_wind_direction_element(element): pass diff --git a/tests/test_parsers/test_parse_wind_speed_element.py b/tests/test_parsers/test_parse_wind_speed_element.py index 8c5ff3d..cff6580 100644 --- a/tests/test_parsers/test_parse_wind_speed_element.py +++ b/tests/test_parsers/test_parse_wind_speed_element.py @@ -19,7 +19,7 @@ def test_parse_element_with_invalid_attribute(): WeatherForecastParseError, match="one or more value tag in timerange tag not found", ): - for wind_speed in parse_wind_speed_element(element): + for _wind_speed in parse_wind_speed_element(element): pass @@ -51,5 +51,5 @@ def test_parse_element_with_invalid_value_elements_text(index, err_msg): WeatherForecastParseError, match=err_msg, ): - for wind_speed in parse_wind_speed_element(element): + for _wind_speed in parse_wind_speed_element(element): pass