summaryrefslogtreecommitdiff
path: root/tests/test_robot.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-12-01 15:31:10 +0100
committerGitHub <noreply@github.com>2020-12-01 15:31:10 +0100
commit219af243a20899d0c8a677700c36e339d7cdcc74 (patch)
treeb7b98f65cf6cc8127f1d6a06e37419fe45222871 /tests/test_robot.py
parenta1e6bc4cee2690eb7f2103901ada9a50846a7419 (diff)
parent8aa2a7556ad80d3d644287fc17832050f3a5a303 (diff)
Merge pull request #2318 from dalf/add-pylint
Add pylint
Diffstat (limited to 'tests/test_robot.py')
-rw-r--r--tests/test_robot.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/test_robot.py b/tests/test_robot.py
deleted file mode 100644
index b48153fe4..000000000
--- a/tests/test_robot.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# -*- 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