Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lzchen committed Jul 22, 2024
1 parent 1a38232 commit 9adb588
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

# pylint: disable=E0611
# pylint: disable=too-many-lines

from sys import modules
from timeit import default_timer
Expand Down Expand Up @@ -759,6 +760,7 @@ def test_wsgi_metrics_new_semconv(self):
self.assertTrue(histrogram_data_point_seen and number_data_point_seen)

# pylint: disable=too-many-locals
# pylint: disable=too-many-nested-blocks
def test_wsgi_metrics_both_semconv(self):
_expected_metric_names = [
"http.server.duration",
Expand Down Expand Up @@ -801,7 +803,7 @@ def test_wsgi_metrics_both_semconv(self):
)
elif metric.name == "http.server.duration":
self.assertAlmostEqual(
duration, point.sum, delta=5
duration, point.sum, delta=10
)
if isinstance(point, NumberDataPoint):
number_data_point_seen = True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
@pytest.mark.skipif(
not DJANGO_3_1, reason="AsyncClient implemented since Django 3.1"
)
# pylint: disable=too-many-public-methods
class TestMiddlewareAsgi(SimpleTestCase, TestBase):
@classmethod
def setUpClass(cls):
Expand Down

0 comments on commit 9adb588

Please sign in to comment.