def test_functions_raise_non_frame_map(non_helioprojective_map): with pytest.raises(ValueError, match=r"HeliographicCarrington, .* Helioprojective"): contains_full_disk(non_helioprojective_map) with pytest.raises(ValueError, match=r"HeliographicCarrington, .* Helioprojective"): contains_solar_center(non_helioprojective_map) with pytest.raises(ValueError, match=r"HeliographicCarrington, .* Helioprojective"): is_all_off_disk(non_helioprojective_map) with pytest.raises(ValueError, match=r"HeliographicCarrington, .* Helioprojective"): contains_limb(non_helioprojective_map) with pytest.raises(ValueError, match=r"HeliographicCarrington, .* Helioprojective"): on_disk_bounding_coordinates(non_helioprojective_map)
def test_contains_full_disk(aia171_test_map, all_off_disk_map, all_on_disk_map, straddles_limb_map): assert contains_full_disk(aia171_test_map) assert ~contains_full_disk(all_off_disk_map) assert ~contains_full_disk(all_on_disk_map) assert ~contains_full_disk(straddles_limb_map)