Function pyo3_asyncio::testing::main

source ·
pub async fn main() -> PyResult<()>
Expand description

Parses test arguments and passes the tests to the pyo3-asyncio test harness

This function collects the test structures from the inventory boilerplate and forwards them to the test harness.

Examples

use pyo3::prelude::*;

#[pyo3_asyncio::async_std::main]
async fn main() -> PyResult<()> {
    pyo3_asyncio::testing::main().await
}