Skip to content

Commit e4386ad

Browse files
committed
Addressed minor lint issues.
1 parent bf98bba commit e4386ad

File tree

1 file changed

+4
-3
lines changed
  • instrumentation-genai/opentelemetry-instrumentation-google-genai/tests/generate_content

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
import abc
1817
import json
19-
import logging
2018
import os
2119
import sys
2220
import unittest
@@ -49,7 +47,10 @@ def create_valid_response(response_text="The model response", input_tokens=10, o
4947

5048
class NonStreamingTestCase(TestCase):
5149

52-
def setUp(self):
50+
# The "setUp" function is defined by "unittest.TestCase" and thus
51+
# this name must be used. Uncertain why pylint doesn't seem to
52+
# recognize that this is a unit test class for which this is inherited.
53+
def setUp(self): # pylint: disable=invalid-name
5354
super().setUp()
5455
if self.__class__ == NonStreamingTestCase:
5556
raise unittest.SkipTest('Skipping testcase base.')

0 commit comments

Comments
 (0)