def test_file_name_locator(paths, date, expect): pattern = "" locator = saf.Locator( pattern, ) frequency = dt.timedelta(minutes=15) assert list(locator.find_paths(paths, date, frequency)) == expect
def test_loader(): # Create seam to pass test data variable = None initial_time = None valid_time = None pressures = None pressure = None loader = saf.Loader(saf.Locator("saf.nc")) loader._image(variable, initial_time, valid_time, pressures, pressure)
def navigator(): return saf.Navigator(saf.Locator("fake.nc"))