mirror of
https://github.com/not-kennethreitz/convore.json.git
synced 2026-06-05 23:20:19 +00:00
1 line
1.4 KiB
JSON
1 line
1.4 KiB
JSON
[{"user_id": 33746, "stars": [], "topic_id": 36016, "date_created": 1305841600.715795, "message": "hey friends, any ideas on how to detect when I'm running \"manage.py test\" so I can swap out services like redis/solr to be testing instances instead of production ones?", "group_id": 81, "id": 1116974}, {"user_id": 33746, "stars": [], "topic_id": 36016, "date_created": 1305844437.70052, "message": "ah, okay, thanks. If I have to change the command I'll probably just use an environment variable.", "group_id": 81, "id": 1117573}, {"user_id": 33746, "stars": [], "topic_id": 36016, "date_created": 1305842383.801697, "message": "Is there a simple way to detect when being run in tests?", "group_id": 81, "id": 1117167}, {"user_id": 32856, "stars": [{"date_created": 1306258408.9597499, "user_id": 141}], "topic_id": 36016, "date_created": 1305843892.780093, "message": "You can specify an alternate settings file when running management commands. --settings=foo", "group_id": 81, "id": 1117411}, {"user_id": 33746, "stars": [], "topic_id": 36016, "date_created": 1305845769.180398, "message": "but that approach could also work!", "group_id": 81, "id": 1117649}, {"user_id": 1127, "stars": [], "topic_id": 36016, "date_created": 1305849236.848012, "message": "You can also monkey patch mock objects that follow a similar API if it's not something simple like a db backend or a cache backend", "group_id": 81, "id": 1117985}] |