def test_join(self, *, table): table._join = Mock(name='join') ret = table.join(User.id, User.name) table._join.assert_called_once_with( joins.RightJoin(stream=table, fields=(User.id, User.name)), ) assert ret is table._join()
def join(self, *fields: FieldDescriptorT) -> StreamT: """Right join of this table and another stream/table.""" return self._join(joins.RightJoin(stream=self, fields=fields))
def join(self, *fields: FieldDescriptorT) -> StreamT: return self._join(joins.RightJoin(stream=self, fields=fields))