# Path: skyfield/api.py
# N = E = +1.0
# S = W = -1.0
# 
# Path: skyfield/eclipselib.py
# LUNAR_ECLIPSES = [
#     'Penumbral',
#     'Partial',
#     'Total',
# ]
# def lunar_eclipses(start_time, end_time, eph):
#     def f(t):


from skyfield.api import load
from skyfield import eclipselib

def test_lunar_eclipses():
    # The documentation test already confirms the dates of these two
    # eclipses; here, we confirm that the data structures all match.
    ts = load.timescale()
    eph = load('de421.bsp')

    t0 = ts.utc(2019, 1, 1)
    t1 = ts.utc(2020, 1, 1)

# Path: skyfield/api.py
# N = E = +1.0
# S = W = -1.0
# 
# Path: skyfield/eclipselib.py
# LUNAR_ECLIPSES = [
#     'Penumbral',
#     'Partial',
#     'Total',
# ]
# def lunar_eclipses(start_time, end_time, eph):
#     def f(t):


# Path: skyfield/tests/test_eclipselib.py
from skyfield.api import load
from skyfield import eclipselib


def test_lunar_eclipses():
    # The documentation test already confirms the dates of these two
    # eclipses; here, we confirm that the data structures all match.
    ts = load.timescale()
    eph = load('de421.bsp')

    t0 = ts.utc(2019, 1, 1)
    t1 = ts.utc(2020, 1, 1)

    t, y, details = eclipselib.lunar_eclipses(t0, t1, eph)