Go to file
Tim Abbott bc2ace726c Fix bad Django test suite interaction with get_client default.
authenticated_api_view and authenticated_json_view call
update_user_activity with a client generated using
@has_request_variables with a default of e.g. get_client("website").
Because that get_client call only happens once on importing the
module, if those client objects didn't exist previously in the
fixtures, then the first test will generate objects with ids 2 and 3,
and then the second test will dump the database, restore from the
fixtures, and then eventually generate client objects with ids 4 and
5.  But since the default values were only computed at module load,
we'll still end calling add_user_activity with client objects with ids
2 and 3, which don't exist in the newly restored database.

Fix this madness by just making sure those two client objects exist in
the database.

(imported from commit d940e129d077a560d9a0f96ec3daa2e16ce21c8b)
2012-11-28 17:41:39 -05:00
api get_updates: Replace "failures" with the new dont_block option. 2012-11-28 17:41:38 -05:00
certs SSL certificates for zephyr.humbughq.com 2012-11-21 13:58:48 -05:00
confirmation confirmation: Use timezone-aware datetime object 2012-11-07 18:50:26 -05:00
humbug Preliminary GitHub integration for pull requests and pushes 2012-11-27 13:55:57 -05:00
servers Nagios: move /var/lib/nagios/humbug-api to /usr/local/lib/humbug 2012-11-26 16:58:51 -05:00
templates Implement a favicon as a link rel. 2012-11-28 15:12:37 -05:00
tools inject-messages: use new send_message API 2012-11-27 16:08:54 -05:00
zephyr Fix bad Django test suite interaction with get_client default. 2012-11-28 17:41:39 -05:00
.gitignore .gitignore: Update for new all_messages_log filenames 2012-11-13 10:59:02 -05:00
manage.py chmod +x manage.py 2012-10-25 15:22:18 -04:00