fre.pp.tests.test_split_netcdf_regex module

Test fre.pp.split_netcdf_script file regex pattern Tests the FILE_REGEX at the start of the file

fre.pp.tests.test_split_netcdf_regex.generate_regex(history_source)

Pull the regex from split_netcdf through a bizarre use of side effects :param history_source: history_source for the regex; used to build regex :type history_source: string

fre.pp.tests.test_split_netcdf_regex.test_split_netcdf_file_regex_pattern()

Test that split_netcdf function correctly creates a regex that matches the test cases that we are interested in

This specifically tests: FILE_REGEX = f’.*{history_source}(.tile.*)?.nc’