plugged some test coverage lacunae, incl. tests for release_slot for the Carte Blanche; select_role for ROLE_CHOICES & ROLE_SELECT; equip_trinket non-POST paths; & tooltip_shoptalk for the Tithe Token
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -73,3 +73,13 @@ class CarteTooltipTest(SimpleTestCase):
|
||||
|
||||
def test_tooltip_contains_no_expiry(self):
|
||||
self.assertIn("no expiry", self.token.tooltip_text())
|
||||
|
||||
|
||||
class TitheTooltipTest(SimpleTestCase):
|
||||
def setUp(self):
|
||||
self.token = Token()
|
||||
self.token.token_type = Token.TITHE
|
||||
self.token.expires_at = None
|
||||
|
||||
def test_tooltip_shoptalk_returns_none(self):
|
||||
self.assertIsNone(self.token.tooltip_shoptalk())
|
||||
|
||||
Reference in New Issue
Block a user