Ver a proveniência

[minor] allow tests with longer timeout

version-14
Rushabh Mehta há 8 anos
ascendente
cometimento
ebbad93d26
1 ficheiros alterados com 3 adições e 2 eliminações
  1. +3
    -2
      frappe/tests/ui/test_test_runner.py

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

@@ -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()


Carregando…
Cancelar
Guardar