summary refs log tree commit diff
path: root/tests/handlers/test_deactivate_account.py
diff options
context:
space:
mode:
authorDirk Klimpel <5740567+dklimpel@users.noreply.github.com>2022-08-05 16:59:09 +0200
committerGitHub <noreply@github.com>2022-08-05 16:59:09 +0200
commite2ed1b7155bbd38d4a2752073056c112464b3644 (patch)
tree72c0dd52bb339199a559726aff40a7633403e82b /tests/handlers/test_deactivate_account.py
parentMark token-authenticaticated-registration API as not-experimental (#11897) (diff)
downloadsynapse-e2ed1b7155bbd38d4a2752073056c112464b3644.tar.xz
Use literals in place of `HTTPStatus` constants in tests (#13463)
Diffstat (limited to 'tests/handlers/test_deactivate_account.py')
-rw-r--r--tests/handlers/test_deactivate_account.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/handlers/test_deactivate_account.py b/tests/handlers/test_deactivate_account.py
index 7586e472b5..ff9f2e8edb 100644
--- a/tests/handlers/test_deactivate_account.py
+++ b/tests/handlers/test_deactivate_account.py
@@ -11,7 +11,6 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-from http import HTTPStatus
 from typing import Any, Dict
 
 from twisted.test.proto_helpers import MemoryReactor
@@ -58,7 +57,7 @@ class DeactivateAccountTestCase(HomeserverTestCase):
             access_token=self.token,
         )
 
-        self.assertEqual(req.code, HTTPStatus.OK, req)
+        self.assertEqual(req.code, 200, req)
 
     def test_global_account_data_deleted_upon_deactivation(self) -> None:
         """