Просмотр исходного кода

[minor] allow tests with longer timeout

version-14
Rushabh Mehta 8 лет назад
Родитель
Сommit
ebbad93d26
1 измененных файлов: 3 добавлений и 2 удалений
  1. +3
    -2
      frappe/tests/ui/test_test_runner.py

+ 3
- 2
frappe/tests/ui/test_test_runner.py Просмотреть файл

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


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


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

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


Загрузка…
Отмена
Сохранить