コード例 #1
0
ファイル: __main__.py プロジェクト: sainjusajan/django-oscar
if __name__ == '__main__':
    from IPython.testing import iptestcontroller
    iptestcontroller.main()
コード例 #2
0
# coding: utf-8

"""
Small wrapper around IPythons testing runner

It calls iptest with 'ipyext' as testgroup. You can pass
arguments to nose by appending them after '--'
"""
from __future__ import print_function

from IPython.testing.iptestcontroller import main
import sys

if '--coverage' in sys.argv:
    print("Coverage will not see any data (because tests work via ipythons '.run_cell()'?)")

# add our testgroup at the beginning of the arguments to iptest
sys.argv[1:1] = ["ipyext"]

main()
コード例 #3
0
ファイル: iptest3-script.py プロジェクト: als0052/pyNastran
# -*- coding: utf-8 -*-
import re
import sys

from IPython.testing.iptestcontroller import main

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
    sys.exit(main())
コード例 #4
0
if __name__ == '__main__':
    import sys
    from IPython.testing.iptestcontroller import main

    sys.exit(main())
コード例 #5
0
ファイル: __main__.py プロジェクト: 0038lana/Test-Task
if __name__ == '__main__':
    from IPython.testing import iptestcontroller
    iptestcontroller.main()