Skip to content

Commit 02cc30d

Browse files
committed
Move test files in subdirectories for tidiness
1 parent 9704efd commit 02cc30d

11 files changed

+9
-8
lines changed

tests/introspection.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ extern crate serde;
66

77
#[derive(GraphQLQuery)]
88
#[GraphQLQuery(
9-
query_path = "tests/introspection_query.graphql",
10-
schema_path = "tests/introspection_schema.graphql"
9+
query_path = "tests/introspection/introspection_query.graphql",
10+
schema_path = "tests/introspection/introspection_schema.graphql"
1111
)]
1212
#[allow(dead_code)]
1313
struct IntrospectionQuery;

tests/scalar_variables.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ extern crate serde_json;
77

88
#[derive(GraphQLQuery)]
99
#[GraphQLQuery(
10-
query_path = "tests/scalar_variables_query.graphql",
11-
schema_path = "tests/scalar_variables_schema.graphql"
10+
query_path = "tests/scalar_variables/scalar_variables_query.graphql",
11+
schema_path = "tests/scalar_variables/scalar_variables_schema.graphql"
1212
)]
1313
#[allow(dead_code)]
1414
struct ScalarVariablesQuery;
@@ -23,8 +23,8 @@ fn scalar_variables_query_variables_struct() {
2323

2424
#[derive(GraphQLQuery)]
2525
#[GraphQLQuery(
26-
query_path = "tests/scalar_variables_query_defaults.graphql",
27-
schema_path = "tests/scalar_variables_schema.graphql"
26+
query_path = "tests/scalar_variables/scalar_variables_query_defaults.graphql",
27+
schema_path = "tests/scalar_variables/scalar_variables_schema.graphql"
2828
)]
2929
#[allow(dead_code)]
3030
struct DefaultScalarVariablesQuery;

tests/union_query.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ extern crate serde_derive;
55
extern crate serde;
66
extern crate serde_json;
77

8-
const RESPONSE: &'static str = include_str!("union_query_response.json");
8+
const RESPONSE: &'static str = include_str!("unions/union_query_response.json");
99

1010
#[derive(GraphQLQuery)]
1111
#[GraphQLQuery(
12-
query_path = "tests/union_query.graphql", schema_path = "tests/union_schema.graphql"
12+
query_path = "tests/unions/union_query.graphql",
13+
schema_path = "tests/unions/union_schema.graphql"
1314
)]
1415
#[allow(dead_code)]
1516
struct UnionQuery;
File renamed without changes.

0 commit comments

Comments
 (0)