Exemple #1
0
def runtest(*argv):
    with patch("sys.argv", ["runtest"] + list(argv)):
        with patch("sys.exit", MockExit()) as mockexit:
            with patch("sys.stderr", StringIO()) as mockerr:
                from itest.main import main

                main()
    return mockexit.exitcode, mockerr.getvalue()
Exemple #2
0
from itest import main

main.main()
Exemple #3
0
from itest.main import main


main()