コード例 #1
0
ファイル: test_robot.py プロジェクト: djay/piratechat
def test_suite():
    suite = unittest.TestSuite()
    suite.addTests([
        layered(robotsuite.RobotTestSuite("test_app.robot"),
                layer=PYRAMIDROBOTLAYER),
    ])
    return suite
コード例 #2
0
ファイル: test_robot.py プロジェクト: jean/piratechat
def test_suite():
    suite = unittest.TestSuite()
    suite.addTests([
        layered(robotsuite.RobotTestSuite("test_app.robot"),
                layer=PYRAMIDROBOTLAYER),
    ])
    return suite
コード例 #3
0
ファイル: test_robot.py プロジェクト: ecreall/lagendacommun
def test_suite():
    suite = unittest.TestSuite()
    current_dir = os.path.abspath(os.path.dirname(__file__))
    robot_dir = os.path.join(current_dir, 'robot')
    robot_tests = [
        os.path.join('robot', doc) for doc in os.listdir(robot_dir)
        if doc.endswith('.robot') and doc.startswith('test_')
    ]
    for test in robot_tests:
        suite.addTests([
            layered(robotsuite.RobotTestSuite(test), layer=ROBOT_LAYER),
        ])

    return suite
コード例 #4
0
ファイル: provestest_robot.py プロジェクト: UPCnet/max
def test_suite():
    suite = unittest.TestSuite()
    current_dir = os.path.abspath(os.path.dirname(__file__))
    robot_dir = os.path.join(current_dir, 'robot')
    robot_tests = [
        os.path.join('robot', doc) for doc in
        os.listdir(robot_dir) if doc.endswith('.robot') and
        doc.startswith('test_')
    ]
    for test in robot_tests:
        suite.addTests([
            layered(robotsuite.RobotTestSuite(test),
            layer=PYRAMIDROBOTLAYER),
        ])
    return suite
コード例 #5
0
def test_suite():
    return unittest.TestSuite()  # robot tests disabled, not maintained

    import robotsuite
    from pyramid_robot.layer import layered
    suite = unittest.TestSuite()
    current_dir = os.path.abspath(os.path.dirname(__file__))
    robot_dir = os.path.join(current_dir, 'robot')
    robot_tests = [
        os.path.join('robot', doc) for doc in os.listdir(robot_dir)
        if doc.endswith('.robot') and doc.startswith('test_')
    ]
    for test in robot_tests:
        suite.addTests([
            layered(robotsuite.RobotTestSuite(test), layer=ROBOT_LAYER),
        ])

    return suite
コード例 #6
0
ファイル: test_robot.py プロジェクト: ecreall/nova-ideo
def test_suite():
    return unittest.TestSuite() # robot tests disabled, not maintained

    import robotsuite
    from pyramid_robot.layer import layered
    suite = unittest.TestSuite()
    current_dir = os.path.abspath(os.path.dirname(__file__))
    robot_dir = os.path.join(current_dir, 'robot')
    robot_tests = [
        os.path.join('robot', doc) for doc in
        os.listdir(robot_dir) if doc.endswith('.robot') and
        doc.startswith('test_')
    ]
    for test in robot_tests:
        suite.addTests([
            layered(robotsuite.RobotTestSuite(test),
            layer=ROBOT_LAYER),
        ])

    return suite