Skip to content

Commit

Permalink
fix: fixing lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nerstak committed May 13, 2023
1 parent e0c023c commit 6537dfb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,6 @@ def _create_info_metric(
self, name: str, description: str, attributes: Dict[str, str]
) -> InfoMetricFamily:
"""Create an Info Metric Family with list of attributes"""
i = InfoMetricFamily(name, description, labels=attributes)
i.add_metric(labels=list(attributes.keys()), value=attributes)
return i
info = InfoMetricFamily(name, description, labels=attributes)
info.add_metric(labels=list(attributes.keys()), value=attributes)
return info
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,9 @@ def test_target_info_disabled(self):
result = list(metric_reader._collector.collect())

for prometheus_metric in result:
self.assertNotEquals(type(prometheus_metric), InfoMetricFamily)
self.assertNotEquals(prometheus_metric.name, "target")
self.assertNotEquals(
self.assertNotEqual(type(prometheus_metric), InfoMetricFamily)
self.assertNotEqual(prometheus_metric.name, "target")
self.assertNotEqual(
prometheus_metric.documentation, "Target metadata"
)
self.assertNotIn("os", prometheus_metric.samples[0].labels)
Expand Down

0 comments on commit 6537dfb

Please sign in to comment.