Good support for mocking responses, tests
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 30/100
Research direction
No files or tests are named. Start by reviewing the repository's existing GraphQL client tests and any response-mocking support, then map the requested behaviors to testable interfaces. Done means mocks can be checked against queries and schemas, support don't-care and sentinel values, allow per-test patching, and clarify whether automatic generation is included.
Written by the indexing model from the issue text.
Description
I think this should be high in the roadmap:
Make it easy/fun for application writers to write mock gql responses, to support their tests.
This includes:
- Check the mock used in the test matches the query & schema used.
- Allow a mocked response to contain "don't-care" values (which the test writer knows aren't important for the specific test) and sentinel values (which the author will want to check for identity).
- Allow a basic mocked response to be written for a test class, and then 'patched" in place for each test with specific changes.
- Maybe automagically generate a mocked response, à la https://github.com/marak/Faker.js/ ?
- Dominant language
- Python
- Stars
- 78
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from graphql-python/gql-next
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
graphql-python/gql-next#30 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
graphql-python/gql-next#29 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
graphql-python/gql-next#28 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
graphql-python/gql-next#27 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
graphql-python/gql-next#25 · 3 comments · 1 reaction ·
All issues in graphql-python/gql-next
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
anthropics/skills#1811 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
speaches-ai/speaches#678 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
datalayer/mcp-compose#42 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
conda-forge/spacy-feedstock#177 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
UKGovernmentBEIS/inspect_evals#2523 ·