def test_file_name_exceptions(test_input): r = RinexDownloader('nybp', datetime.now(), datetime.now()) year, yday, start, end, error_message = test_input with pytest.raises(ValueError, match=error_message): r.generate_file_names(year, yday, start, end)
def test_file_name_generation(test_input, expected): r = RinexDownloader('nybp', datetime.now(), datetime.now()) year, yday, start, end = test_input assert len(r.generate_file_names(year, yday, start, end)) == expected