Ejemplo n.º 1
0
 def test_inner_join(self, *, table):
     table._join = Mock(name='join')
     ret = table.inner_join(User.id, User.name)
     table._join.assert_called_once_with(
         joins.InnerJoin(stream=table, fields=(User.id, User.name)),
     )
     assert ret is table._join()
Ejemplo n.º 2
0
Archivo: base.py Proyecto: tahuy/faust
 def inner_join(self, *fields: FieldDescriptorT) -> StreamT:
     """Inner join of this table and another stream/table."""
     return self._join(joins.InnerJoin(stream=self, fields=fields))
Ejemplo n.º 3
0
 def inner_join(self, *fields: FieldDescriptorT) -> StreamT:
     return self._join(joins.InnerJoin(stream=self, fields=fields))