Skip to content

Commit

Permalink
Merge pull request #61 from ARTIST-Association/bugfix/remove_download…
Browse files Browse the repository at this point in the history
…_test

Remove Download Test
  • Loading branch information
mcw92 authored Dec 9, 2024
2 parents 5a61739 + 8022178 commit e7d6d81
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions tests/preprocessing/test_dwd_weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,27 +196,3 @@ def test_dwd_weather(
assert (
station["weather_type_1h"]["value"][:] == [-1.0, 100.0, 110.0]
).all()


def test_raw_download() -> None:
"""Run the raw download function to catch any errors in the request. No assertions are tested."""
with tempfile.TemporaryDirectory() as temp_dir:
output_path = temp_dir
file_name = "test_raw_downlaod.h5"

dwd_weather = DWDWeatherData(
parameters_10min=[
"radiation_sky_short_wave_diffuse",
"radiation_global",
],
parameters_1h=[
"cloud_cover_total",
"humidity",
],
station_ids=["15000"],
start_date="2021-04-01",
end_date="2021-05-01",
output_path=output_path,
file_name=file_name,
)
dwd_weather._get_raw_data()

0 comments on commit e7d6d81

Please sign in to comment.