回答編集履歴

1

追記

2018/09/06 05:07

投稿

tachikoma
tachikoma

スコア3601

test CHANGED
@@ -11,3 +11,21 @@
11
11
 
12
12
 
13
13
  ただ、このジェネレータオブジェクトはsession間で共有されないので、どうにも用途が読めないです。
14
+
15
+
16
+
17
+
18
+
19
+ ----
20
+
21
+ これか。
22
+
23
+ ```Python
24
+
25
+ for auth_header, auth_test in preset_header():
26
+
27
+ with app.test_request_context(path, method="POST", headers=headers, data=payload) as req:
28
+
29
+ yield req
30
+
31
+ ```