I did a fresh install and ran bench run-tests. It ran well the first time, but after that started giving me this error.
Anyone has ideas on how to fix this?
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 79, in <module>
main()
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 16, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/commands.py", line 29, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/commands.py", line 790, in run_tests
force=context.force, profile=profile)
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/test_runner.py", line 41, in main
ret = run_all_tests(app, verbose, profile)
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/test_runner.py", line 76, in run_all_tests
_add_test(path, filename, verbose, test_suite=test_suite)
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/test_runner.py", line 165, in _add_test
make_test_records(doctype, verbose)
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/test_runner.py", line 182, in make_test_records
make_test_records_for_doctype(options, verbose, force)
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/test_runner.py", line 227, in make_test_records_for_doctype
frappe.local.test_objects[doctype] += make_test_objects(doctype, test_module.test_records, verbose)
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/test_runner.py", line 274, in make_test_objects
d.insert()
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 193, in insert
self.run_before_save_methods()
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 611, in run_before_save_methods
self.set_title_field()
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 303, in set_title_field
self.set(df.fieldname, df.options.format(**get_values()))
KeyError: u'introduction text'