zulip/zerver/lib
Tim Abbott 26463bb34d Fix nondeterministic subscriptions for default test users.
Previously, the UserProfile objects were created in the order
generated by a Set, which meant tests would randomly start failing if
the code that runs before this part of populate_db changed (and thus
caused the Set object used to pass users into bulk_create_users to
have a different order when enumerated).

This fixes the issue in two ways -- one by sorting the users inside
bulk_create_users, and second by attaching subscriptions to users
based on a deterministic ordering.
2016-04-13 13:19:02 -07:00
..
bugdown Purge 'from typing import *' from zerver/. 2016-04-07 14:07:07 -07:00
__init__.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
actions.py Replace /json/update_message_flags with REST style route. 2016-04-11 21:38:22 -07:00
alert_words.py Annotation of zerver/lib/alert_words.py 2016-04-08 11:11:58 -07:00
avatar.py Allow overriding the default avatar image 2013-11-18 11:48:53 -05:00
bulk_create.py Fix nondeterministic subscriptions for default test users. 2016-04-13 13:19:02 -07:00
cache.py s/memcached_prefix/remote_cache_prefix/g 2016-03-31 12:54:29 -07:00
cache_helpers.py Purge 'from typing import *' from zerver/. 2016-04-07 14:07:07 -07:00
ccache.py Apply Python 3 futurize transform libmodernize.fixes.fix_unicode_type. 2015-11-01 09:35:06 -08:00
context_managers.py Add PEP-484 type annotations to generator functions. 2016-04-03 15:40:05 -07:00
create_user.py python3: Add missing utf-8 encoding/decoding in various places. 2016-03-08 09:14:15 -08:00
db.py Add PEP-484 type annotations to zerver/lib/. 2016-04-03 15:40:23 -07:00
debug.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
digest.py Purge 'from typing import *' from zerver/. 2016-04-07 14:07:07 -07:00
email_mirror.py Add PEP-484 type annotations to zerver/lib/. 2016-04-03 15:40:23 -07:00
event_queue.py Don't autoreload Tornado when running inside test suite. 2016-04-13 13:19:01 -07:00
handlers.py Annotation of zerver/lib/handlers.py. 2016-04-08 11:18:36 -07:00
html_diff.py Make built-in bots come from settings.py, and allow localserver-specific ones 2013-11-01 14:13:05 -04:00
initial_password.py python3: Add missing utf-8 encoding/decoding in various places. 2016-03-08 09:14:15 -08:00
logging_util.py DEPLOYED => PRODUCTION 2015-08-21 10:33:35 -07:00
mandrill_client.py ENTERPRISE => VOYAGER. 2015-08-21 10:33:35 -07:00
mention.py Clean up some unused imports. 2013-11-04 11:51:17 -05:00
migrate.py Annotation of zerver/lib/migrate.py 2016-04-08 11:18:35 -07:00
narrow.py Add support for event queues with an included narrow. 2013-12-12 17:36:39 -05:00
notifications.py Purge 'from typing import *' from zerver/. 2016-04-07 14:07:07 -07:00
parallel.py Purge 'from typing import *' from zerver/. 2016-04-07 14:07:07 -07:00
push_notifications.py Exit without exception if this APNS attempt has no connection 2015-02-11 07:20:51 +00:00
query.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
queue.py Purge 'from typing import *' from zerver/. 2016-04-07 14:07:07 -07:00
rate_limiter.py Annotation of zerver/lib/rate_limiter.py 2016-04-08 11:18:36 -07:00
redis_utils.py Remove Redis remote authentication feature. 2015-08-20 21:58:59 -07:00
response.py Django 1.7 compatibility: miscellaneous changes 2015-08-20 23:01:26 -07:00
rest.py python3: Fix usage of .keys()/.values() to handle iterators. 2016-01-26 21:11:25 -08:00
session_user.py Django 1.8 compatibility: extracting the user from a session 2015-08-20 23:15:45 -07:00
socket.py Purge 'from typing import *' from zerver/. 2016-04-07 14:07:07 -07:00
statistics.py Annotation of zerver/lib/statistics.py 2016-04-08 11:11:58 -07:00
test_helpers.py Replace /json/get_old_messages with REST style route. 2016-04-11 21:38:23 -07:00
test_runner.py Fix test_runner.py fast_test_only return type. 2016-02-03 19:29:44 -08:00
timeout.py Purge 'from typing import *' from zerver/. 2016-04-07 14:07:07 -07:00
timestamp.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
tornado_ioloop_logging.py Purge 'from typing import *' from zerver/. 2016-04-07 14:07:07 -07:00
unminify.py Add PEP-484 type annotations to zerver/lib/. 2016-04-03 15:40:23 -07:00
upload.py Rewrite sanitize_name to better preserve filenames. 2016-04-03 16:26:12 -07:00
user_agent.py Add script to parse user agents with historical data set. 2013-12-13 11:26:36 -05:00
utils.py Switch to using Python 3 style division everywhere. 2016-01-26 21:09:43 -08:00
validator.py Fix missing None in check_none_or return. 2016-02-03 19:25:18 -08:00