def METHOD_NAME(self):
    """Test if value error is raised correctly if no static window can be found on dataset with given user
    settings.
    """
    with pytest.raises(ValueError, match=r".*No static windows .*"):
        align_dataset_to_gravity(
            self.sample_sensor_dataset,
            sampling_rate_hz=1,
            window_length_s=3,
            static_signal_th=0.0,
            metric="maximum",
        )