diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2021-04-08 19:29:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-08 19:29:03 +0100 |
commit | 64f4f506c5ac2595b670fd37255dd1be485e6018 (patch) | |
tree | e5578a06584477e553b8e0eea11c3aa1f40dc2b5 /tests | |
parent | Merge pull request #9769 from matrix-org/rav/fix_bionic (diff) | |
parent | Merge remote-tracking branch 'origin/develop' into rav/drop_py35 (diff) | |
download | synapse-64f4f506c5ac2595b670fd37255dd1be485e6018.tar.xz |
Merge pull request #9766 from matrix-org/rav/drop_py35
Require py36, Postgres 9.6, and sqlite 3.22
Diffstat (limited to 'tests')
-rw-r--r-- | tests/storage/test_database.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/tests/storage/test_database.py b/tests/storage/test_database.py index 5a77c84962..a906d30e73 100644 --- a/tests/storage/test_database.py +++ b/tests/storage/test_database.py @@ -36,17 +36,6 @@ def _stub_db_engine(**kwargs) -> BaseDatabaseEngine: class TupleComparisonClauseTestCase(unittest.TestCase): def test_native_tuple_comparison(self): - db_engine = _stub_db_engine(supports_tuple_comparison=True) - clause, args = make_tuple_comparison_clause(db_engine, [("a", 1), ("b", 2)]) + clause, args = make_tuple_comparison_clause([("a", 1), ("b", 2)]) self.assertEqual(clause, "(a,b) > (?,?)") self.assertEqual(args, [1, 2]) - - def test_emulated_tuple_comparison(self): - db_engine = _stub_db_engine(supports_tuple_comparison=False) - clause, args = make_tuple_comparison_clause( - db_engine, [("a", 1), ("b", 2), ("c", 3)] - ) - self.assertEqual( - clause, "(a >= ? AND (a > ? OR (b >= ? AND (b > ? OR c > ?))))" - ) - self.assertEqual(args, [1, 1, 2, 2, 3]) |