Problem description
The sleep() method on the Strategy class (strategy.py file) accepts a process_pending_orders switch which is not used in the body of the method and basically the method doesn't process pending orders. On the other hand, BacktestingBroker seems to be the only broker which has a logic to process pending orders. Not fully sure about this but the implementation seems a bit contradictory; the Strategy has a broker attribute however, when backtesting, it is not possible to call self.broker.process_pending_orders() from a Strategy subclass as it expects a mandatory strategy argument!