diff options
author | Adam Tauber <asciimoo@gmail.com> | 2016-01-02 11:14:49 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2016-01-10 19:23:10 +0100 |
commit | 53979a7bf7669c803c2a493fbf136519f6a293e6 (patch) | |
tree | 3b79da9408699108ba89b22cedf73cfff1fe59b7 /tests/test_robot.py | |
parent | f9186344b3642fb3d55d2dc46c96c6b25b8ccf41 (diff) | |
download | searxng-53979a7bf7669c803c2a493fbf136519f6a293e6.tar.gz searxng-53979a7bf7669c803c2a493fbf136519f6a293e6.zip |
[mod] remove buildout/makefile infrastructure
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 000000000..b48153fe4 --- /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 |