paper-dynasty-discord/tests/other/test_dice.py
Cal Corum ee80cd72ae fix: apply Black formatting and resolve ruff lint violations
Run Black formatter across 83 files and fix 1514 ruff violations:
- E722: bare except → typed exceptions (17 fixes)
- E711/E712/E721: comparison style fixes with noqa for SQLAlchemy (44 fixes)
- F841: unused variable assignments (70 fixes)
- F541/F401: f-string and import cleanup (1383 auto-fixes)

Remaining 925 errors are all F403/F405 (star imports) — structural,
requires converting to explicit imports in a separate effort.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 11:37:46 -05:00

18 lines
494 B
Python

from sqlmodel import Session
from dice import ab_roll
from in_game.gameplay_models import Game
def test_ab_roll(session: Session):
game_1 = session.get(Game, 1)
game_1.initialize_play(session)
this_roll = ab_roll(game_1.away_team, game_1, allow_chaos=False)
assert this_roll.d_six_one is not None
assert this_roll.d_six_two is not None
assert this_roll.d_six_three is not None
assert this_roll.d_twenty is not None
assert this_roll.roll_message is not None