diff options
author | Johannes 'josch' Schauer <josch@mister-muffin.de> | 2017-06-16 15:18:31 +0200 |
---|---|---|
committer | Johannes 'josch' Schauer <josch@mister-muffin.de> | 2017-06-16 15:18:31 +0200 |
commit | 7fe1a5ea5ff4aeecbbc2af673cbdc88fbbea18d5 (patch) | |
tree | fecfa8408befea37218807ea487e1f954afb356c /tests/test_robot.py |
New upstream version 0.12.0+dfsg1
Diffstat (limited to 'tests/test_robot.py')
-rw-r--r-- | tests/test_robot.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/test_robot.py b/tests/test_robot.py new file mode 100644 index 0000000..b48153f --- /dev/null +++ b/tests/test_robot.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- + +import os +import unittest2 as unittest +from plone.testing import layered +from robotsuite import RobotTestSuite +from searx.testing import SEARXROBOTLAYER + + +def 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 |