From d6ac54c0c1036cbb7bca75d75cb3f5a8177f7573 Mon Sep 17 00:00:00 2001 From: Jonathan Weth <git@jonathanweth.de> Date: Sun, 20 Feb 2022 16:17:39 +0100 Subject: [PATCH] Drop superfluous preferences --- aleksis/apps/matrix/preferences.py | 24 ------------------------ aleksis/apps/matrix/tests/test_matrix.py | 2 -- 2 files changed, 26 deletions(-) diff --git a/aleksis/apps/matrix/preferences.py b/aleksis/apps/matrix/preferences.py index f1d43e5..123be1c 100644 --- a/aleksis/apps/matrix/preferences.py +++ b/aleksis/apps/matrix/preferences.py @@ -33,30 +33,6 @@ class AccessToken(StringPreference): default = "" -@site_preferences_registry.register -class User(StringPreference): - section = matrix - name = "user" - verbose_name = _("User to access homeserver") - default = "" - - -@site_preferences_registry.register -class DeviceID(StringPreference): - section = matrix - name = "device_id" - verbose_name = _("Device ID") - default = "" - - -@site_preferences_registry.register -class DeviceName(StringPreference): - section = matrix - name = "device_name" - verbose_name = _("Device name") - default = "AlekSIS" - - @site_preferences_registry.register class DisambiguateRoomAliases(BooleanPreference): section = matrix diff --git a/aleksis/apps/matrix/tests/test_matrix.py b/aleksis/apps/matrix/tests/test_matrix.py index f5b87be..71530bb 100644 --- a/aleksis/apps/matrix/tests/test_matrix.py +++ b/aleksis/apps/matrix/tests/test_matrix.py @@ -42,8 +42,6 @@ def matrix_bot_user(synapse): user = r.json() - get_site_preferences()["matrix__user"] = user["user_id"] - get_site_preferences()["matrix__device_id"] = user["device_id"] get_site_preferences()["matrix__access_token"] = user["access_token"] yield user -- GitLab