Skip to content

Unit tests depend on functions not being tested #394

@cwhanse

Description

@cwhanse

test_irradiance.py uses

ephem_data = solarposition.get_solarposition(
    times, tus.latitude, tus.longitude, method='nrel_numpy')

irrad_data = tus.get_clearsky(times, model='ineichen', linke_turbidity=3)

dni_et = irradiance.extraradiation(times.dayofyear)

to compute known values for unit tests. This dependence on functions not under test could cause a unit test to fail when the unit's code is unchanged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions