ewatercycle.testing.helpers

Module Contents

ewatercycle.testing.helpers.reyamlify(value: str) str

Convert value to yaml object and dump it again.

recipy.to_yaml() can generate a slightly different yaml string than the expected string. Call this method on expected string to get consistent results.

Parameters:

value – yaml string

Returns:

yaml string

ewatercycle.testing.helpers.create_netcdf(var_name: str, filename: pathlib.Path)

Create a netcdf file with random data.

Parameters:
  • var_name – Variable name

  • filename – Path to file

Returns:

Path to file