18 lines
505 B
Python
18 lines
505 B
Python
import pytest
|
|
from sqlmodel import Session
|
|
|
|
from command_logic.logic_gameplay import advance_runners
|
|
from tests.factory import session_fixture, Game
|
|
|
|
|
|
def test_advance_runners(session: Session):
|
|
this_game = session.get(Game, 3)
|
|
play_1 = this_game.initialize_play(session)
|
|
|
|
assert play_1.starting_outs == 0
|
|
assert play_1.on_first_id is None
|
|
assert play_1.on_second_id is None
|
|
assert play_1.on_third_id is None
|
|
|
|
# TODO: Test advance runners once "advance play" function is ready
|