Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
esanchezm committed Jan 13, 2024
1 parent b6a9b40 commit 6f6c4b8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/exporter_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ def test_collect_gauge(self):
self.assertIsInstance(result, GaugeMetricFamily)
self.assertEqual(result.name, "test_gauge")
self.assertEqual(result.documentation, "Test Gauge")
self.assertEqual(result.samples[0].labels, {"label1": "value1", "server": "localhost:8080"})
self.assertEqual(
result.samples[0].labels, {"label1": "value1", "server": "localhost:8080"}
)
self.assertEqual(result.samples[0].value, 10)

def test_collect_counter(self):
Expand All @@ -82,7 +84,9 @@ def test_collect_counter(self):
self.assertIsInstance(result, CounterMetricFamily)
self.assertEqual(result.name, "test_counter")
self.assertEqual(result.documentation, "Test Counter")
self.assertEqual(result.samples[0].labels, {"label2": "value2", "server": "localhost:8080"})
self.assertEqual(
result.samples[0].labels, {"label2": "value2", "server": "localhost:8080"}
)
self.assertEqual(result.samples[0].value, 230)

def test_get_qbittorrent_metrics(self):
Expand Down

0 comments on commit 6f6c4b8

Please sign in to comment.