summary refs log tree commit diff
path: root/tests/test_terms_auth.py
diff options
context:
space:
mode:
authorV02460 <V02460@gmail.com>2023-08-25 21:05:10 +0200
committerGitHub <noreply@github.com>2023-08-25 15:05:10 -0400
commit84f441f88f51d3f94e1616e1e5507df0dadb6de8 (patch)
tree717bc7464290b887d2e2c355659104d5b7613972 /tests/test_terms_auth.py
parentservice-identity, incremental, and setuptools-rust now have type hints. (#16186) (diff)
downloadsynapse-84f441f88f51d3f94e1616e1e5507df0dadb6de8.tar.xz
Prepare unit tests for Python 3.12 (#16099)
Diffstat (limited to 'tests/test_terms_auth.py')
-rw-r--r--tests/test_terms_auth.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_terms_auth.py b/tests/test_terms_auth.py
index 52424aa087..64a49488c6 100644
--- a/tests/test_terms_auth.py
+++ b/tests/test_terms_auth.py
@@ -85,7 +85,9 @@ class TermsTestCase(unittest.HomeserverTestCase):
             }
         }
         self.assertIsInstance(channel.json_body["params"], dict)
-        self.assertDictContainsSubset(channel.json_body["params"], expected_params)
+        self.assertLessEqual(
+            channel.json_body["params"].items(), expected_params.items()
+        )
 
         # We have to complete the dummy auth stage before completing the terms stage
         request_data = {