summary refs log tree commit diff
diff options
context:
space:
mode:
authorNeil Johnson <neil@matrix.org>2019-10-04 13:43:23 +0100
committerNeil Johnson <neil@matrix.org>2019-10-04 13:43:23 +0100
commit4b0cf830aa3ffec4fe17dd992dd860c864767491 (patch)
treea7ad1d71d231c1a7b13cf0df339d1bcd064275a3
parenttowncrier (diff)
downloadsynapse-4b0cf830aa3ffec4fe17dd992dd860c864767491.tar.xz
black
-rw-r--r--tests/storage/test_monthly_active_users.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/storage/test_monthly_active_users.py b/tests/storage/test_monthly_active_users.py
index f2cca0f5c2..b7a90cbbf6 100644
--- a/tests/storage/test_monthly_active_users.py
+++ b/tests/storage/test_monthly_active_users.py
@@ -147,9 +147,7 @@ class MonthlyActiveUsersTestCase(unittest.HomeserverTestCase):
         self.store.reap_monthly_active_users()
         self.pump()
         count = self.store.get_monthly_active_count()
-        self.assertEquals(
-            self.get_success(count), self.hs.config.max_mau_value
-        )
+        self.assertEquals(self.get_success(count), self.hs.config.max_mau_value)
 
         self.reactor.advance(FORTY_DAYS)
         self.store.reap_monthly_active_users()
@@ -170,7 +168,7 @@ class MonthlyActiveUsersTestCase(unittest.HomeserverTestCase):
             user = "@user%d:server" % i
             email = "user%d@example.com" % i
             self.store.upsert_monthly_active_user(user)
-            threepids.append({"medium": "email", "address": email},)
+            threepids.append({"medium": "email", "address": email})
             # Need to ensure that the most recent entries in the
             # monthly_active_users table are reserved
             now = int(self.hs.get_clock().time_msec())
@@ -193,9 +191,7 @@ class MonthlyActiveUsersTestCase(unittest.HomeserverTestCase):
         self.store.reap_monthly_active_users()
         self.pump()
         count = self.store.get_monthly_active_count()
-        self.assertEquals(
-            self.get_success(count), self.hs.config.max_mau_value
-        )
+        self.assertEquals(self.get_success(count), self.hs.config.max_mau_value)
 
     def test_populate_monthly_users_is_guest(self):
         # Test that guest users are not added to mau list