mirror of https://github.com/zulip/zulip.git
cc8ee68514
This fixes tests that have been failing for me for, well, months, that I've been ignoring: ====================================================================== FAIL: test_successful_subscriptions_list (zephyr.tests.SubscriptionAPITest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/jesstess/dev/humbug/zephyr/tests.py", line 631, in test_successful_subscriptions_list self.assertIsInstance(stream['name'], str) AssertionError: u'Denmark' is not an instance of <type 'str'> ====================================================================== FAIL: test_get_stream_colors (zephyr.tests.SubscriptionPropertiesTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/jesstess/dev/humbug/zephyr/tests.py", line 515, in test_get_stream_colors self.assertIsInstance(color, str) AssertionError: u'#c2c2c2' is not an instance of <type 'str'> ---------------------------------------------------------------------- The more comprehensive fix to this is going through both our API and JSON calls and ensuring that we always return unicode objects, documenting that, and then testing that more specifically. For now, at least have passing tests. (imported from commit ed1875ea1f66c1f1e89f80502c0d6abb323dc489) |
||
---|---|---|
.. | ||
fixtures | ||
jstemplates | ||
lib | ||
management | ||
migrations | ||
static | ||
tests | ||
__init__.py | ||
context_processors.py | ||
decorator.py | ||
filters.py | ||
forms.py | ||
handlers.py | ||
middleware.py | ||
models.py | ||
openid.py | ||
retention_policy.py | ||
tests.py | ||
tornado_callbacks.py | ||
tornadoviews.py | ||
views.py |