コード例 #1
0
ファイル: __main__.py プロジェクト: sanderegg/osparc-simcore
from simcore_service_storage.cli import main

if __name__ == "__main__":
    main()
コード例 #2
0
""" Main application entry point

 `python -m simcore_service_storage ...`

Why does this file exist, and why __main__? For more info, read:

- https://www.python.org/dev/peps/pep-0338/
- https://docs.python.org/3/using/cmdline.html#cmdoption-m
"""
import sys

from simcore_service_storage.cli import main

if __name__ == "__main__":
    sys.exit(main())
コード例 #3
0
def test_main(here):  # pylint: disable=unused-variable
    with pytest.raises(SystemExit) as excinfo:
        main("--help".split())

    assert excinfo.value.code == 0