Skip to content

Commit 0d7555d

Browse files
committed
Fix juniper_rocket tests
1 parent 3d71930 commit 0d7555d

File tree

5 files changed

+17
-0
lines changed

5 files changed

+17
-0
lines changed

juniper_rocket/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ pear = "0.2.4"
3131
tempfile = "3.3"
3232

3333
[dev-dependencies]
34+
futures = "0.3.22"
3435
juniper = { version = "0.16", path = "../juniper", features = ["expose-test-schema"] }
3536

3637
[lints.clippy]

juniper_rocket/examples/simple.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
//! Example demonstrating all possible HTTP endpoints integration for [`rocket`].
2+
3+
#![expect(unused_crate_dependencies, reason = "single example")]
4+
15
use juniper::{
26
EmptyMutation, EmptySubscription, RootNode,
37
tests::fixtures::starwars::schema::{Database, Query},

juniper_rocket/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ mod for_minimal_versions_check_only {
88
use pear as _;
99
use tempfile as _;
1010
}
11+
#[cfg(test)]
12+
mod for_tests_only {
13+
use futures as _;
14+
}
1115

1216
use std::{borrow::Cow, io::Cursor};
1317

juniper_rocket/tests/custom_response_tests.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
//! Ensuring that [`GraphQLResponse`] could be built by crate users.
2+
3+
#![expect(unused_crate_dependencies, reason = "single test case")]
4+
15
use juniper_rocket::GraphQLResponse;
26
use rocket::http::Status;
37

juniper_rocket/tests/http_test_suite.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
//! [`HttpIntegration`] testing for [`juniper`].
2+
3+
#![expect(unused_crate_dependencies, reason = "single test case")]
4+
15
use futures::executor;
26
use juniper::{
37
EmptyMutation, EmptySubscription, RootNode,

0 commit comments

Comments
 (0)