mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 23:18:26 +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
|
@ -259,3 +259,16 @@ def test_get_by_natural_key_annotates_primary_email_verified_false(factories):
|
|||
user = models.User.objects.get_by_natural_key(user.username)
|
||||
|
||||
assert user.has_verified_primary_email is False
|
||||
|
||||
|
||||
def test_set_settings(factories):
|
||||
user = factories["users.User"]()
|
||||
assert user.settings is None
|
||||
|
||||
user.set_settings(foo="bar", hello="world")
|
||||
|
||||
user.refresh_from_db()
|
||||
assert user.settings == {
|
||||
"foo": "bar",
|
||||
"hello": "world",
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue