pelicun.tests.tools.test_regional_sim

These are tests for the regional_sim module of pelicun.

Functions

test_regional_sim_earthquake_run(...)

Integration test for the regional_sim module using earthquake data.

test_regional_sim_filter_failures(...)

Test that invalid filter strings raise a ValueError.

test_regional_sim_filter_success(filter_str, ...)

Test successful building filtering with various filter formats.

test_regional_sim_hurricane_scenario(...)

Integration test for the regional_sim module using hurricane data.

pelicun.tests.tools.test_regional_sim.test_regional_sim_earthquake_run(setup_earthquake_test_data: Path, monkeypatch: MonkeyPatch) None[source]

Integration test for the regional_sim module using earthquake data.

pelicun.tests.tools.test_regional_sim.test_regional_sim_filter_failures(filter_str: str, expected_error: str, setup_earthquake_test_data: Path, monkeypatch: MonkeyPatch) None[source]

Test that invalid filter strings raise a ValueError.

pelicun.tests.tools.test_regional_sim.test_regional_sim_filter_success(filter_str: str, expected_count: int, setup_earthquake_test_data: Path, monkeypatch: MonkeyPatch) None[source]

Test successful building filtering with various filter formats.

pelicun.tests.tools.test_regional_sim.test_regional_sim_hurricane_scenario(setup_hurricane_test_data: Path, monkeypatch: MonkeyPatch) None[source]

Integration test for the regional_sim module using hurricane data.

Tests that the hurricane simulation runs correctly and produces the expected output files with the correct column names using the PWS (Peak Wind Speed) acronym.