lettuce
lettuce copied to clipboard
Using LETTUCE_USE_TEST_DATABASE with django harvest management command causes error
Django: 1.11 Lettuce: GitHub master
Here is the stack trace
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 363, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 355, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python2.7/dist-packages/lettuce/django/management/commands/harvest.py", line 174, in handle
self._testrunner.setup_test_environment()
File "/usr/local/lib/python2.7/dist-packages/django/test/runner.py", line 463, in setup_test_environment
setup_test_environment(debug=self.debug_mode)
File "/usr/local/lib/python2.7/dist-packages/django/test/utils.py", line 122, in setup_test_environment
"setup_test_environment() was already called and can't be called "
RuntimeError: setup_test_environment() was already called and can't be called again without first calling teardown_test_environment().