graphql-python / graphql-python/gql-next

Good support for mocking responses, tests

オープン
#18 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
78
フォーク
6
PR マージ指標
30日以内にマージされた PR はありません

説明

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/ ?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。