django-nonrel/djangoappengine — Issue #17: testbed taskqueue: HTTP_HOST environment variable was not set
Author: aburgel
Created: 2012-01-19 21:26:54+00:00
State: open

i'm seeing this warning a lot when i run my task queue unittests. i tried setting this env variable in db/stubs.py activate_test_stubs() and it stops the warnings, but i'm not sure if its the right thing to do.

the full warning is: The HTTP_HOST environment variable was not set, but is required to determine the correct value for the 'Task.target' property. Please update your unit tests to specify a correct value for this environment variable.

i added this code to `activate_test_stubs()`:

```python
import os
os.environ['HTTP_HOST'] = "%s.appspot.com" % appid
```