from astral.geocoder import all_locations
from astral.sun import sun

def test_AllLocations(test_database):
    for location in all_locations(test_database):
        sun(location.observer)

from astral.geocoder import all_locations
from astral.sun import noon

def test_AllLocations(test_database):
    for location in all_locations(test_database):
        noon(location.observer)

Use the `noon` function instead of `sun`.
Use the `noon` function instead of `sun`.

All we're doing is check that we can call the function for all locations.
This can fail for `sun` but does not for `noon`
