29 lines
1.0 KiB
Python
29 lines
1.0 KiB
Python
import pytest
|
|
from sqlmodel import Session, select, func
|
|
|
|
from in_game.gameplay_models import Card
|
|
from in_game.gameplay_queries import get_batter_scouting_or_none, get_card_or_none, get_pitcher_scouting_or_none
|
|
from tests.factory import session_fixture, sample_ratings_query
|
|
|
|
|
|
# async def test_create_scouting(session: Session, sample_ratings_query):
|
|
# this_card = await get_card_or_none(session, card_id=1405)
|
|
|
|
# assert this_card.player.id == 395
|
|
# assert this_card.team.id == 31
|
|
# assert this_card.batterscouting.battingcard_id == sample_ratings_query["ratings"][0]['battingcard']['id']
|
|
|
|
# # this_scouting = await get_batter_scouting_or_none(session, this_card)
|
|
|
|
# # assert this_scouting.battingcard_id == sample_ratings_query["ratings"][0]['battingcard']['id']
|
|
|
|
# # this_card = await get_card_or_none(session, card_id=1406)
|
|
|
|
# # assert this_card.player.id == 161
|
|
# # assert this_card.team.id == 31
|
|
|
|
# # this_scouting = await get_pitcher_scouting_or_none(session, this_card)
|
|
|
|
# # assert this_scouting.pitchingcard_id == 4294
|
|
|