Explorar el Código

[minor] allow tests with longer timeout

version-14
Rushabh Mehta hace 8 años
padre
commit
ebbad93d26
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. +3
    -2
      frappe/tests/ui/test_test_runner.py

+ 3
- 2
frappe/tests/ui/test_test_runner.py Ver fichero

@@ -9,15 +9,16 @@ class TestTestRunner(unittest.TestCase):
for test in get_tests():
if test.startswith('#'):
continue
print('Running {0}...'.format(test))

timeout = 60
if '#' in test:
test, comment = test.split('#')
test = test.strip()
if comment=='long':
if comment.strip()=='long':
timeout = 240

print('Running {0}...'.format(test))

frappe.db.set_value('Test Runner', None, 'module_path', test)
frappe.db.commit()
driver.refresh()


Cargando…
Cancelar
Guardar