[scrobbles] Fix aggregator tests
This commit is contained in:
15
tests/scrobbles_tests/test_metadata.py
Normal file
15
tests/scrobbles_tests/test_metadata.py
Normal file
@ -0,0 +1,15 @@
|
||||
import pytest
|
||||
|
||||
from scrobbles.dataclasses import BoardGameLogData, BoardGameScoreLogData
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_boardgame_log_data(boardgame_scrobble):
|
||||
assert not boardgame_scrobble.geo_location
|
||||
assert boardgame_scrobble.logdata == BoardGameLogData(
|
||||
players=[
|
||||
BoardGameScoreLogData(
|
||||
user_id=1, name=None, color="Blue", score=30, win=True
|
||||
)
|
||||
]
|
||||
)
|
||||
Reference in New Issue
Block a user