mirror of https://github.com/zulip/zulip.git
Change humbug => zulip in some local variables.
(imported from commit 88caa4a87ea0fd269ab741645c124c5d07d69c0a)
This commit is contained in:
parent
2db6dc6c88
commit
661ca38b58
|
@ -48,15 +48,15 @@ def compute_stats(log_level):
|
|||
top_percents[size] = 0
|
||||
for i, email in enumerate(sorted(total_user_counts.keys(),
|
||||
key=lambda x: -total_user_counts[x])):
|
||||
percent_humbug = round(100 - (user_counts[email].get("zephyr_mirror", 0)) * 100. /
|
||||
percent_zulip = round(100 - (user_counts[email].get("zephyr_mirror", 0)) * 100. /
|
||||
total_user_counts[email], 1)
|
||||
for size in top_percents.keys():
|
||||
top_percents.setdefault(size, 0)
|
||||
if i < size:
|
||||
top_percents[size] += (percent_humbug * 1.0 / size)
|
||||
top_percents[size] += (percent_zulip * 1.0 / size)
|
||||
|
||||
logging.debug("%40s | %10s | %s%%" % (email, total_user_counts[email],
|
||||
percent_humbug))
|
||||
percent_zulip))
|
||||
|
||||
logging.info("")
|
||||
for size in sorted(top_percents.keys()):
|
||||
|
|
|
@ -1678,8 +1678,8 @@ class S3Test(AuthedTestCase):
|
|||
A call to /json/upload_file should return a uri and actually create an object.
|
||||
"""
|
||||
self.login("hamlet@zulip.com")
|
||||
fp = StringIO("humbug!")
|
||||
fp.name = "humbug.txt"
|
||||
fp = StringIO("zulip!")
|
||||
fp.name = "zulip.txt"
|
||||
|
||||
result = self.client.post("/json/upload_file", {'file': fp})
|
||||
self.assert_json_success(result)
|
||||
|
@ -1687,7 +1687,7 @@ class S3Test(AuthedTestCase):
|
|||
self.assertIn("uri", json)
|
||||
uri = json["uri"]
|
||||
self.test_uris.append(uri)
|
||||
self.assertEquals("humbug!", urllib2.urlopen(uri).read().strip())
|
||||
self.assertEquals("zulip!", urllib2.urlopen(uri).read().strip())
|
||||
|
||||
def test_multiple_upload_failure(self):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue