datalad_next.tests.run_main

datalad_next.tests.run_main(args, exit_code=0, expect_stderr=False)[source]

Run main() of the datalad, do basic checks and provide outputs

Parameters:
  • args (list) -- List of string cmdline arguments to pass

  • exit_code (int) -- Expected exit code. Would raise AssertionError if differs

  • expect_stderr (bool or string) -- Whether to expect stderr output. If string -- match

Returns:

Output produced

Return type:

stdout, stderr strings