import pytest

#from scrobbles.dataclasses import BoardGameLogData, BoardGameScoreLogData


@pytest.mark.skip("Need to get local tests running working again")
@pytest.mark.django_db
def test_boardgame_log_data(boardgame_scrobble):
    assert boardgame_scrobble.logdata == BoardGameLogData(
        players=[
            BoardGameScoreLogData(
                person_id=1,
                bgg_username="",
                color="Blue",
                character=None,
                team=None,
                score=30,
                win=True,
                new=None,
                rank=None,
                seat_order=None,
                role=None
            ),
            BoardGameScoreLogData(
                person_id=2,
                bgg_username="",
                color="Red",
                character=None,
                team=None,
                score=28,
                win=False,
                new=None,
                rank=None,
                seat_order=None,
                role=None
            ),
        ],
        difficulty=None,
        solo=None,
        two_handed=None,
    )
    assert len(boardgame_scrobble.logdata.players) == 1
    assert boardgame_scrobble.logdata.players[0].user.id == 1
    assert boardgame_scrobble.logdata.players[0].name == "Test"
