Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using LETTUCE_USE_TEST_DATABASE with django harvest management command causes error #556

Open
erfaan opened this issue Oct 12, 2017 · 0 comments

Comments

@erfaan
Copy link

erfaan commented Oct 12, 2017

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().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant