You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: instrumentation-genai/opentelemetry-instrumentation-google-genai/tests/generate_content/test_async_nonstreaming.py
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,10 @@
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
+
16
+
# TODO: Once the async non-streaming case has been fully implemented,
17
+
# reimplement this in terms of "nonstreaming_base.py".
18
+
15
19
importasyncio
16
20
importlogging
17
21
importunittest
@@ -44,6 +48,8 @@ def create_valid_response(
44
48
}
45
49
46
50
51
+
# Temporary test fixture just to ensure that the in-progress work to
52
+
# implement this case doesn't break the original code.
Copy file name to clipboardExpand all lines: instrumentation-genai/opentelemetry-instrumentation-google-genai/tests/generate_content/test_async_streaming.py
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,10 @@
14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
17
+
# TODO: once the async streaming case has been implemented, we should have
18
+
# two different tests here that inherit from "streaming_base" and "nonstreaming_base",
19
+
# covering the cases of one response and multiple streaming responses.
20
+
17
21
importasyncio
18
22
importlogging
19
23
importunittest
@@ -46,6 +50,8 @@ def create_valid_response(
46
50
}
47
51
48
52
53
+
# Temporary test fixture just to ensure that the in-progress work to
54
+
# implement this case doesn't break the original code.
Copy file name to clipboardExpand all lines: instrumentation-genai/opentelemetry-instrumentation-google-genai/tests/generate_content/test_sync_streaming.py
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,10 @@
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
+
# TODO: once the async streaming case has been implemented, we should have
16
+
# two different tests here that inherit from "streaming_base" and "nonstreaming_base",
17
+
# covering the cases of one response and multiple streaming responses.
18
+
15
19
importlogging
16
20
importunittest
17
21
@@ -42,7 +46,8 @@ def create_valid_response(
42
46
],
43
47
}
44
48
45
-
49
+
# Temporary test fixture just to ensure that the in-progress work to
50
+
# implement this case doesn't break the original code.
0 commit comments