pytuflow.FVCRunState.test

pytuflow.FVCRunState.test#

FVCRunState.test(tuflow_bin)#

Run the control file in context using the specified TUFLOWFV binary in test mode.

The stdout and stderr are automatically captured (no console window is produced) and once complete, the return values are the captured stdout and stderr.

Parameters:
  • tuflowfv_bin (PathLike) – File path to the TUFLOW binary or a registered version name.

  • tuflow_bin (str | Path)

Returns:

Captured stdout and stderr from the run.

Return type:

tuple[str, str]

Examples

>>> fvc = ... # assuming is an instance of FVC
>>> stdout, stderr = tcf.context().test('2026.0.1')