summary refs log tree commit diff
path: root/tests/handlers/test_stats.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-03-16 15:13:49 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-03-16 15:13:49 +0000
commitbf1fad84623c6814c6b559a55371ec477a246d9f (patch)
treead406e4e994f57031a41cbc2ce23bcf4ef8b7915 /tests/handlers/test_stats.py
parentMerge pull request #5726 from matrix-org/uhoreg/e2e_cross-signing2-part2 (diff)
parentMerge pull request #6231 from matrix-org/erikj/refactor_stores (diff)
downloadsynapse-bf1fad84623c6814c6b559a55371ec477a246d9f.tar.xz
Merge pull request #6231 from matrix-org/erikj/refactor_stores
Diffstat (limited to 'tests/handlers/test_stats.py')
-rw-r--r--tests/handlers/test_stats.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/handlers/test_stats.py b/tests/handlers/test_stats.py

index 89ec8636a6..c4a29e3355 100644 --- a/tests/handlers/test_stats.py +++ b/tests/handlers/test_stats.py
@@ -13,9 +13,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -from synapse import storage from synapse.rest import admin from synapse.rest.client.v1 import login, room +from synapse.storage.data_stores.main import stats from tests import unittest @@ -91,10 +91,10 @@ class StatsRoomTests(unittest.HomeserverTestCase): ) def _get_current_stats(self, stats_type, stat_id): - table, id_col = storage.stats.TYPE_TO_TABLE[stats_type] + table, id_col = stats.TYPE_TO_TABLE[stats_type] - cols = list(storage.stats.ABSOLUTE_STATS_FIELDS[stats_type]) + list( - storage.stats.PER_SLICE_FIELDS[stats_type] + cols = list(stats.ABSOLUTE_STATS_FIELDS[stats_type]) + list( + stats.PER_SLICE_FIELDS[stats_type] ) end_ts = self.store.quantise_stats_time(self.reactor.seconds() * 1000)