graphql-python / graphql-python/graphene

Testing subscriptions using `graphene.test`?

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

説明

What is the idiomatic approach for testing subscriptions? It seems that the `client.execute` option in `graphene.test` is more appropriate for `Query` testing.

P.S. There is a subscription execution example in the documentation but it does not seem to be part of the testing library (https://docs.graphene-python.org/en/latest/execution/subscriptions/).

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

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

調査の方向性

リンク先のドキュメントにある subscription の実行例を読み、その後 graphene.test client と client.execute の使用方法を確認してください。ドキュメントに記載された subscription のフローとテストライブラリを比較し、サポートされている慣用的なテスト方法を明確にして文書化してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
api, testing-qa
issue の種類
ドキュメント
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

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

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