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