(context)
| 263 | # Test that we correctly forward values passed via `style` to Order |
| 264 | # objects. |
| 265 | def initialize(context): |
| 266 | api.schedule_function( |
| 267 | func=do_order, |
| 268 | date_rule=api.date_rules.every_day(), |
| 269 | time_rule=api.time_rules.market_open(), |
| 270 | ) |
| 271 | |
| 272 | def do_order(context, data): |
| 273 | assert len(context.portfolio.positions.keys()) == 0 |
nothing calls this directly
no test coverage detected