Skip to content

Commit 117c811

Browse files
committed
Increase alignment with broader repo practices.
1 parent ab36068 commit 117c811

File tree

15 files changed

+4
-348
lines changed

15 files changed

+4
-348
lines changed

instrumentation-genai/opentelemetry-instrumentation-google-genai/Makefile

Lines changed: 0 additions & 40 deletions
This file was deleted.

instrumentation-genai/opentelemetry-instrumentation-google-genai/tests/common/instrumentation_context.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import sys
16-
17-
sys.path.append("../../src")
18-
19-
# This import has to happen after 'sys.path.append' above, so that it is possible
20-
# to use this name relative to "../../src" (at least when this module is imported
21-
# from a test script that has been invoked directly).
2215
from opentelemetry.instrumentation.google_genai import ( # pylint: disable=wrong-import-position
2316
GoogleGenAiSdkInstrumentor,
2417
)

instrumentation-genai/opentelemetry-instrumentation-google-genai/tests/generate_content/nonstreaming_base.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,9 @@
1414

1515
import json
1616
import os
17-
import sys
1817
import unittest
1918

20-
sys.path.append("../")
21-
22-
# This needs to go after 'sys.path.append' in order to ensure that 'common'
23-
# can be imported using this naming (when the script is invoked directly).
24-
from common.base import TestCase # pylint: disable=wrong-import-position
19+
from common.base import TestCase
2520

2621

2722
def create_valid_response(

instrumentation-genai/opentelemetry-instrumentation-google-genai/tests/generate_content/run_with_env.sh

Lines changed: 0 additions & 36 deletions
This file was deleted.

instrumentation-genai/opentelemetry-instrumentation-google-genai/tests/generate_content/test_async_nonstreaming.py

100755100644
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!./run_with_env.sh
2-
31
# Copyright The OpenTelemetry Authors
42
#
53
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,14 +14,9 @@
1614

1715
import asyncio
1816
import logging
19-
import sys
2017
import unittest
2118

22-
sys.path.append("../")
23-
24-
# This needs to go after 'sys.path.append' in order to ensure that 'common'
25-
# can be imported using this naming (when the script is invoked directly).
26-
from common.base import TestCase # pylint: disable=wrong-import-position
19+
from common.base import TestCase
2720

2821

2922
def create_valid_response(

instrumentation-genai/opentelemetry-instrumentation-google-genai/tests/generate_content/test_async_streaming.py

100755100644
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,9 @@
1616

1717
import asyncio
1818
import logging
19-
import sys
2019
import unittest
2120

22-
sys.path.append("../")
23-
24-
# This needs to go after 'sys.path.append' in order to ensure that 'common'
25-
# can be imported using this naming (when the script is invoked directly).
26-
from common.base import TestCase # pylint: disable=wrong-import-position
21+
from common.base import TestCase
2722

2823

2924
def create_valid_response(

instrumentation-genai/opentelemetry-instrumentation-google-genai/tests/generate_content/test_sync_nonstreaming.py

100755100644
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!./run_with_env.sh
2-
31
# Copyright The OpenTelemetry Authors
42
#
53
# Licensed under the Apache License, Version 2.0 (the "License");

instrumentation-genai/opentelemetry-instrumentation-google-genai/tests/generate_content/test_sync_streaming.py

100755100644
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!./run_with_env.sh
2-
31
# Copyright The OpenTelemetry Authors
42
#
53
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,14 +13,9 @@
1513
# limitations under the License.
1614

1715
import logging
18-
import sys
1916
import unittest
2017

21-
sys.path.append("../")
22-
23-
# This needs to go after 'sys.path.append' in order to ensure that 'common'
24-
# can be imported using this naming (when the script is invoked directly).
25-
from common.base import TestCase # pylint: disable=wrong-import-position
18+
from common.base import TestCase
2619

2720

2821
def create_valid_response(

instrumentation-genai/opentelemetry-instrumentation-google-genai/tests/requirements.txt

Lines changed: 0 additions & 20 deletions
This file was deleted.

instrumentation-genai/opentelemetry-instrumentation-google-genai/tools/build.sh

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)