step 17 complete: game kit deck variant cards with hover-equip mini-tooltip; DeckVariant.short_key property for template ids; equip-deck view and url in gameboard; gameboard.js unified for decks and trinkets, portals now inline-display-controlled for FT compatibility; billboard scroll fix: pos captured at event time, rAF guard prevents spurious debounce reset on first visit; 3 new ITs for Earthman deck defaults, Fiorentine not auto-assigned; gameboard IT updated for deck variant cards [git log Co-Authored-By: Claude Sonnet 4.6]
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:
@@ -221,6 +221,30 @@ class CarteTokenCreationTest(TestCase):
|
||||
self.assertIsNone(token.expires_at)
|
||||
|
||||
|
||||
class EquippedDeckTest(TestCase):
|
||||
def test_new_user_gets_earthman_as_default_deck(self):
|
||||
from apps.epic.models import DeckVariant
|
||||
earthman = DeckVariant.objects.get(slug="earthman")
|
||||
user = User.objects.create(email="deck@test.io")
|
||||
user.refresh_from_db()
|
||||
self.assertEqual(user.equipped_deck, earthman)
|
||||
|
||||
def test_fiorentine_is_not_auto_assigned_to_new_users(self):
|
||||
from apps.epic.models import DeckVariant
|
||||
fiorentine = DeckVariant.objects.get(slug="fiorentine-minchiate")
|
||||
user = User.objects.create(email="deck2@test.io")
|
||||
user.refresh_from_db()
|
||||
self.assertNotEqual(user.equipped_deck, fiorentine)
|
||||
|
||||
def test_equipped_deck_can_be_switched(self):
|
||||
from apps.epic.models import DeckVariant
|
||||
fiorentine = DeckVariant.objects.get(slug="fiorentine-minchiate")
|
||||
user = User.objects.create(email="deck3@test.io")
|
||||
user.equipped_deck = fiorentine
|
||||
user.save(update_fields=["equipped_deck"])
|
||||
self.assertEqual(User.objects.get(pk=user.pk).equipped_deck, fiorentine)
|
||||
|
||||
|
||||
class PaymentMethodTest(TestCase):
|
||||
def setUp(self):
|
||||
self.user = User.objects.create(email="pay@test.io")
|
||||
|
||||
Reference in New Issue
Block a user