Skip to content

Commit

Permalink
Run make lint
Browse files Browse the repository at this point in the history
  • Loading branch information
smstone committed May 17, 2024
1 parent e553bf3 commit 6623f77
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions test_labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def test_get_label_events(self):
self.assertEqual(events[1].label["name"], "bug")
self.assertEqual(events[2].label["name"], "bug")


def test_get_label_metrics_closed_issue(self):
"""Test get_label_metrics using a closed issue"""
labels = ["bug", "feature"]
Expand All @@ -64,8 +63,14 @@ def test_get_label_metrics_open_issue(self):
self.issue.state = "open"
labels = ["bug", "feature"]
metrics = get_label_metrics(self.issue, labels)
self.assertLessEqual(metrics["bug"], datetime.now(pytz.utc) - datetime(2021, 1, 2, tzinfo=pytz.UTC))
self.assertGreater(metrics["bug"], datetime.now(pytz.utc) - datetime(2021, 1, 3, tzinfo=pytz.UTC))
self.assertLessEqual(
metrics["bug"],
datetime.now(pytz.utc) - datetime(2021, 1, 2, tzinfo=pytz.UTC),
)
self.assertGreater(
metrics["bug"],
datetime.now(pytz.utc) - datetime(2021, 1, 3, tzinfo=pytz.UTC),
)
self.assertLessEqual(
metrics["feature"],
datetime.now(pytz.utc) - datetime(2021, 1, 2, tzinfo=pytz.UTC),
Expand Down

0 comments on commit 6623f77

Please sign in to comment.