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