graphql-python / graphql-python/gql-next

Good support for mocking responses, tests

Ouverte
#18 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
78
Forks
6
Métriques de merge des PR
Aucune PR mergée en 30 j

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](https://docs.python.org/3/library/unittest.mock.html#unittest.mock.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/ ?

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.