Exemplo n.º 1
0
 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()
Exemplo n.º 2
0
Arquivo: base.py Projeto: tahuy/faust
 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))
Exemplo n.º 3
0
 def left_join(self, *fields: FieldDescriptorT) -> StreamT:
     return self._join(joins.LeftJoin(stream=self, fields=fields))