Merge branch 'main' into fixed-typo

This commit is contained in:
Mark Hildreth 2021-02-06 23:50:15 -05:00 committed by GitHub
commit 3eb23d929d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View file

@ -13,10 +13,10 @@ categories = ["development-tools::testing"]
[dependencies]
test-context-macros = { version = "0.1.1", path = "macros" }
async-trait = "0.1.42"
futures = "0.3"
[dev-dependencies]
tokio = { version = "1.0", features = ["macros", "rt"]}
futures = "0.3.12"
[workspace]
members = [

View file

@ -39,7 +39,7 @@ pub fn test_context(attr: TokenStream, item: TokenStream) -> TokenStream {
let outer_body = if is_async {
quote! {
{
use futures::FutureExt;
use test_context::futures::FutureExt;
let mut ctx = <#context_type as test_context::AsyncTestContext>::setup().await;
let wrapped_ctx = &mut ctx;
let result = async move {

View file

@ -53,6 +53,9 @@
//! }
//! ```
// Reimported to allow for use in the macro.
pub use futures;
pub use test_context_macros::test_context;
/// The trait to implement to get setup/teardown functionality for tests.