()
| 558 | |
| 559 | #[test] |
| 560 | pub fn test_parse() { |
| 561 | let gil_guard = Python::acquire_gil(); |
| 562 | let py = gil_guard.python(); |
| 563 | let mut called = false; |
| 564 | let tuple = ("abc", 42).to_py_object(py); |
| 565 | py_argparse!(py, None, &tuple, None, (x: &str, y: i32) { |
| 566 | assert_eq!(x, "abc"); |
| 567 | assert_eq!(y, 42); |
| 568 | called = true; |
| 569 | Ok(()) |
| 570 | }) |
| 571 | .unwrap(); |
| 572 | assert!(called); |
| 573 | } |
| 574 | |
| 575 | #[test] |
| 576 | pub fn test_default_param_type() { |
nothing calls this directly
no test coverage detected