예제 #1
0
파일: Miro.py 프로젝트: zjmmjzzjm/miro
def launch_unit_tests():
    sys.argv.remove('--unittest')

    logging.basicConfig(level=logging.CRITICAL)

    from miro.plat.utils import initialize_locale
    initialize_locale()
    from miro import bootstrap
    bootstrap.bootstrap()
    from miro import test

    print 'Running Miro unit tests:'
    test.run_tests()
예제 #2
0
파일: Miro.py 프로젝트: kfatehi/miro
def test_startup(argv):
    import sys
    import logging
    logging.basicConfig(level=logging.CRITICAL)

    from miro import app
    app.debugmode = True

    from miro.plat import utils
    utils.initialize_locale()

    from miro import bootstrap
    bootstrap.bootstrap()

    from miro import test
    from miro.plat import resources

    sys.path.append(resources.app_root())
    test.run_tests()
예제 #3
0
파일: Miro.py 프로젝트: codito/miro
def test_startup(argv):
    import sys
    import logging
    logging.basicConfig(level=logging.CRITICAL)

    from miro import app
    app.debugmode = True

    from miro.plat import utils
    utils.initialize_locale()

    from miro import bootstrap
    bootstrap.bootstrap()

    from miro import test
    from miro.plat import resources

    sys.path.append(resources.app_root())
    test.run_tests()
예제 #4
0
파일: mirotest.py 프로젝트: nxmirrors/miro
# You must obey the GNU General Public License in all respects for all of
# the code used other than OpenSSL. If you modify file(s) with this
# exception, you may extend this exception to your version of the file(s),
# but you are not obligated to do so. If you do not wish to do so, delete
# this exception statement from your version. If you delete this exception
# statement from all source files in the program, then also delete it here.

"""Miro test utility -- console application for running unit tests.
"""

import sys
import logging

from miro.plat import utils
utils.initialize_locale()

from miro import bootstrap
bootstrap.bootstrap()

# from miro import gtcache
# gtcache.init()

if "-v" not in sys.argv:
    logging.basicConfig(level=logging.CRITICAL)

from miro import test
from miro.plat import resources

sys.path.append(resources.appRoot())
test.run_tests()