| 1234567891011121314151617181920212223 | # -*- coding: utf-8 -*-import osimport unittest2 as unittestfrom plone.testing import layeredfrom robotsuite import RobotTestSuitefrom searx.testing import SEARXROBOTLAYERdef test_suite():    suite = unittest.TestSuite()    current_dir = os.path.abspath(os.path.dirname(__file__))    robot_dir = os.path.join(current_dir, 'robot')    tests = [        os.path.join('robot', f) for f in        os.listdir(robot_dir) if f.endswith('.robot') and        f.startswith('test_')    ]    for test in tests:        suite.addTests([            layered(RobotTestSuite(test), layer=SEARXROBOTLAYER),        ])    return suite
 |