(caplog)
| 380 | |
| 381 | |
| 382 | def test_command_with_args(caplog): |
| 383 | args = [ |
| 384 | "fake.server.app", |
| 385 | "exec", |
| 386 | "foo", |
| 387 | "--one=1", |
| 388 | "--two=2", |
| 389 | "--three=3", |
| 390 | ] |
| 391 | with patch("sys.argv", ["sanic", *args]): |
| 392 | lines = capture(args, caplog) |
| 393 | assert "FOO one='1' two='2' three='3'" in lines |
| 394 | |
| 395 | |
| 396 | def test_command_with_sync_handler(caplog): |