anchor_python_utilities.fixture.call
Calling a module for testing with particular arguments.
Module Contents
Functions
|
Calls a module with arguments like they were passed on the command-line. |
- anchor_python_utilities.fixture.call.call_with_arguments(module: types.ModuleType, arguments: List[str]) None [source]
Calls a module with arguments like they were passed on the command-line.
- Parameters:
module – a module that must have a
main()
function.arguments – the arguments that are passed on the command-line (ignoring any initial program-name).