Code cleanup.

pull/3560/head
derekpierre 2024-10-28 08:48:46 -04:00
parent 9d1a0e95c5
commit 8d5973aa63
No known key found for this signature in database
1 changed files with 27 additions and 26 deletions

View File

@ -47,6 +47,7 @@ DEFINITELY_NOT_CONTEXT_PARAM_NAMES = ["1234", "foo", "", 123]
CONTEXT = {":foo": 1234, ":bar": "'BAR'"}
VALUES_WITH_RESOLUTION = [
([], []),
(42, 42),
(True, True),
("'bar'", "'bar'"),
@ -102,33 +103,33 @@ def test_resolve_any_context_variables():
# graphql query
(
"""{
organization(login: ":bar") {
teams(first: :foo, userLogins: [":bar"]) {
totalCount
edges {
node {
id
name
description
}
}
}
}
}""",
organization(login: ":bar") {
teams(first: :foo, userLogins: [":bar"]) {
totalCount
edges {
node {
id
name
description
}
}
}
}
}""",
"""{
organization(login: "BAR") {
teams(first: 1234, userLogins: ["BAR"]) {
totalCount
edges {
node {
id
name
description
}
}
}
}
}""",
organization(login: "BAR") {
teams(first: 1234, userLogins: ["BAR"]) {
totalCount
edges {
node {
id
name
description
}
}
}
}
}""",
),
],
)