mirror of https://github.com/searxng/searxng.git
[fix] robot tests
This commit is contained in:
parent
0fbd705259
commit
472a409022
|
@ -1,5 +1,6 @@
|
||||||
general:
|
general:
|
||||||
debug : False
|
debug : False
|
||||||
|
instance_name : "searx_test"
|
||||||
|
|
||||||
search:
|
search:
|
||||||
safe_search : 0
|
safe_search : 0
|
||||||
|
@ -25,10 +26,12 @@ engines:
|
||||||
- name : general_dummy
|
- name : general_dummy
|
||||||
engine : dummy
|
engine : dummy
|
||||||
categories : general
|
categories : general
|
||||||
|
shortcut : gd
|
||||||
|
|
||||||
- name : dummy_dummy
|
- name : dummy_dummy
|
||||||
engine : dummy
|
engine : dummy
|
||||||
categories : dummy
|
categories : dummy
|
||||||
|
shortcut : dd
|
||||||
|
|
||||||
locales:
|
locales:
|
||||||
en : English
|
en : English
|
||||||
|
|
|
@ -57,7 +57,7 @@ class SearxRobotLayer(Layer):
|
||||||
)
|
)
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
os.kill(self.server.pid, 15)
|
os.kill(self.server.pid, 9)
|
||||||
# remove previously set environment variable
|
# remove previously set environment variable
|
||||||
del os.environ['SEARX_SETTINGS_PATH']
|
del os.environ['SEARX_SETTINGS_PATH']
|
||||||
|
|
||||||
|
@ -78,7 +78,11 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
base_dir = abspath(join(dirname(__file__), '../tests'))
|
base_dir = abspath(join(dirname(__file__), '../tests'))
|
||||||
if sys.argv[1] == 'robot':
|
if sys.argv[1] == 'robot':
|
||||||
Runner(['--color',
|
r = Runner(['--color',
|
||||||
'--auto-progress',
|
'--auto-progress',
|
||||||
'--path', base_dir],
|
'--stop-on-error',
|
||||||
found_suites=[test_suite()]).run()
|
'--path',
|
||||||
|
base_dir],
|
||||||
|
found_suites=[test_suite()])
|
||||||
|
r.run()
|
||||||
|
sys.exit(int(r.failed))
|
||||||
|
|
Loading…
Reference in New Issue