Simplify printing
All checks were successful
test / test (pull_request) Successful in 36s
build / build (pull_request) Successful in 2m53s

This commit is contained in:
2024-10-10 00:59:43 +02:00
parent 5c73d55d91
commit 3064d0231c
6 changed files with 61 additions and 30 deletions

View File

@@ -32,3 +32,9 @@ class TestWatchlist(unittest.TestCase):
w = Watchlist(prs=[PRInfo(pr=1, title="PR 1")])
self.assertEqual(w.pr(1), PRInfo(pr=1, title="PR 1"))
self.assertEqual(w.pr(2), None)
def test_contains(self):
w = Watchlist(prs=[PRInfo(pr=1, title="PR 1")])
self.assertIn(PRInfo(pr=1, title="PR 1"), w)
self.assertIn(1, w)
self.assertNotIn(2, w)