MetOffice / CATNIP

Climate Analysis Tool: Now In Python
Other
5 stars 2 forks source link

feature get date range #42

Closed zmaalick closed 4 years ago

zmaalick commented 4 years ago

Develop unittests for utils.get_date_range()

unittests should include all possible positive and negative tests

nhsavage commented 4 years ago
• Positive tests:
    ○ Apply function to all of the available data in the DATA directory. Assert that the results start_str, end_str, dr_constraint are as expected (assertEqual)
• Error tests
    ○ Pass a cube which doesn't contain cube  a dimension coordinate called 'time'
    ○ Pass something that isn't a cube to the function