diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2022-10-19 00:18:17 +0000 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2022-10-19 00:18:17 +0000 |
| commit | dfe911b7a29a5d646c66806914015be04a3cc637 (patch) | |
| tree | 8324912b456ea1dd6631cbaa17127077d0c610ae /lib/sqlalchemy/testing/suite | |
| parent | 3668889426bde1cfe31aca387a9c54fe56a66ff7 (diff) | |
| parent | f4214975a7deb5e13f8b6cf21e39697821396a7f (diff) | |
| download | sqlalchemy-dfe911b7a29a5d646c66806914015be04a3cc637.tar.gz | |
Merge "further qualify pyodbc setinputsizes types for long stirngs" into main
Diffstat (limited to 'lib/sqlalchemy/testing/suite')
| -rw-r--r-- | lib/sqlalchemy/testing/suite/test_types.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/suite/test_types.py b/lib/sqlalchemy/testing/suite/test_types.py index 9461298b9..25ed041c2 100644 --- a/lib/sqlalchemy/testing/suite/test_types.py +++ b/lib/sqlalchemy/testing/suite/test_types.py @@ -1148,6 +1148,21 @@ class JSONTest(_LiteralRoundTripFixture, fixtures.TablesTest): def test_round_trip_data1(self, connection): self._test_round_trip({"key1": "value1", "key2": "value2"}, connection) + @testing.combinations( + ("unicode", True), ("ascii", False), argnames="unicode_", id_="ia" + ) + @testing.combinations(100, 1999, 3000, 4000, 5000, 9000, argnames="length") + def test_round_trip_pretty_large_data(self, connection, unicode_, length): + + if unicode_: + data = "réve🐍illé" * ((length // 9) + 1) + data = data[0 : (length // 2)] + else: + data = "abcdefg" * ((length // 7) + 1) + data = data[0:length] + + self._test_round_trip({"key1": data, "key2": data}, connection) + def _test_round_trip(self, data_element, connection): data_table = self.tables.data_table |
