openclean_metanome.tests module

Helper funcitons for unit testing.

openclean_metanome.tests.input_output(rundir: str, cmd: str)Tuple[str, str]

Extract name of input file and output file from commands that are used to run the Metanome algorithms from the command line.

Returns the path to the input and output files.

Parameters
  • rundir (string) – Path to the run directory. The input and output file references in the command string are relative to this directory.

  • cmd (string) – Command to run the Metanome algorithms from the command line.

Returns

Return type

tuple of (string, string)