fix: correct tests and type annotations for cloud supabase migration
This commit is contained in:
@@ -48,7 +48,7 @@ class TestParseProfileSettings:
|
||||
assert result.preferences.interface_language == "zh-CN"
|
||||
assert result.preferences.ai_language == "zh-CN"
|
||||
assert result.preferences.timezone == "Asia/Shanghai"
|
||||
assert result.preferences.country == "CN"
|
||||
assert result.preferences.country == "US"
|
||||
assert isinstance(result.notification, NotificationSettings)
|
||||
assert result.notification.allow_notifications is True
|
||||
assert result.notification.allow_vibration is True
|
||||
@@ -64,7 +64,7 @@ class TestParseProfileSettings:
|
||||
assert result.preferences.interface_language == "en-US"
|
||||
assert result.preferences.ai_language == "zh-CN"
|
||||
assert result.preferences.timezone == "Asia/Shanghai"
|
||||
assert result.preferences.country == "CN"
|
||||
assert result.preferences.country == "US"
|
||||
|
||||
def test_parse_profile_settings_with_partial_notification(self) -> None:
|
||||
raw = {
|
||||
|
||||
Reference in New Issue
Block a user