inkdevhub / drink

De-chained Ready-to-play ink! playground
Apache License 2.0
69 stars 15 forks source link

Provide session as an argument to `drink::test` function. #93

Closed deuszx closed 9 months ago

deuszx commented 9 months ago

It would be nice is to extend the #[drink::test] macro so that it supplies the Session into the test function:

#[drink::test]
fn my_test(session: &mut Session<_>) { ... }

This will safe people bit of typing when setting it (Session) up.