diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-03-23 13:59:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-23 13:59:11 +0000 |
commit | a564b92d37625855940fe599c730a9958c33f973 (patch) | |
tree | be8d131a98ca583005723016a47caab0241e6009 /tests | |
parent | Merge branch 'master' into develop (diff) | |
download | synapse-a564b92d37625855940fe599c730a9958c33f973.tar.xz |
Convert `*StreamRow` classes to inner classes (#7116)
This just helps keep the rows closer to their streams, so that it's easier to see what the format of each stream is.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/replication/tcp/streams/test_receipts.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/replication/tcp/streams/test_receipts.py b/tests/replication/tcp/streams/test_receipts.py index d5a99f6caa..fa2493cad6 100644 --- a/tests/replication/tcp/streams/test_receipts.py +++ b/tests/replication/tcp/streams/test_receipts.py @@ -12,7 +12,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -from synapse.replication.tcp.streams._base import ReceiptsStreamRow +from synapse.replication.tcp.streams._base import ReceiptsStream from tests.replication.tcp.streams._base import BaseStreamTestCase @@ -38,7 +38,7 @@ class ReceiptsStreamTestCase(BaseStreamTestCase): rdata_rows = self.test_handler.received_rdata_rows self.assertEqual(1, len(rdata_rows)) self.assertEqual(rdata_rows[0][0], "receipts") - row = rdata_rows[0][2] # type: ReceiptsStreamRow + row = rdata_rows[0][2] # type: ReceiptsStream.ReceiptsStreamRow self.assertEqual(ROOM_ID, row.room_id) self.assertEqual("m.read", row.receipt_type) self.assertEqual(USER_ID, row.user_id) |