[scrobbles] Fix datalog test case for board games

This commit is contained in:
2024-08-19 12:12:42 -04:00
parent c84acf6ae7
commit ca36e25948
2 changed files with 24 additions and 13 deletions

View File

@ -9,7 +9,23 @@ def test_boardgame_log_data(boardgame_scrobble):
assert boardgame_scrobble.logdata == BoardGameLogData(
players=[
BoardGameScoreLogData(
user_id=1, name=None, color="Blue", score=30, win=True
user_id=1,
name_str="",
bgg_username="",
color="Blue",
character=None,
team=None,
score=30,
win=True,
new=None,
)
]
],
location=None,
geo_location_id=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"