anchor_python_utilities.fixture

Utility functions may be useful for testing.

Package Contents

Functions

call_with_arguments(→ None)

Calls a module with arguments like they were passed on the command-line.

anchor_python_utilities.fixture.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).