Beispiel #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()
Beispiel #2
0
 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))
Beispiel #3
0
 def left_join(self, *fields: FieldDescriptorT) -> StreamT:
     return self._join(joins.LeftJoin(stream=self, fields=fields))