mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-06 02:09:55 +02:00
Fix #996: Persist theme and language settings accross sessions
This commit is contained in:
parent
f6a81a9ecf
commit
84d49754a7
11 changed files with 108 additions and 3 deletions
|
@ -57,3 +57,10 @@ def test_me_serializer_includes_tokens(factories, mocker):
|
|||
generate_scoped_token.assert_called_once_with(
|
||||
user_id=user.pk, user_secret=user.secret_key, scopes=["read:libraries"]
|
||||
)
|
||||
|
||||
|
||||
def test_me_serializer_includes_settings(factories):
|
||||
user = factories["users.User"](settings={"foo": "bar"})
|
||||
serializer = serializers.MeSerializer(user)
|
||||
|
||||
assert serializer.data["settings"] == {"foo": "bar"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue