|
41 | 41 | QuotedNameArgumentTest, |
42 | 42 | SimpleUpdateDeleteTest as _SimpleUpdateDeleteTest, |
43 | 43 | TimestampMicrosecondsTest as _TimestampMicrosecondsTest, |
44 | | - TrueDivTest as _TrueDivTest, |
45 | | - IntegerTest as _IntegerTest, |
46 | | - NumericTest as _NumericTest, |
47 | | - DifficultParametersTest as _DifficultParametersTest, |
48 | | - FetchLimitOffsetTest as _FetchLimitOffsetTest, |
49 | 44 | ) |
50 | 45 |
|
51 | 46 | if packaging.version.parse(sqlalchemy.__version__) >= packaging.version.parse("2.0"): |
52 | 47 | from sqlalchemy.sql import type_coerce |
| 48 | + from sqlalchemy.testing.suite import ( |
| 49 | + TrueDivTest as _TrueDivTest, |
| 50 | + IntegerTest as _IntegerTest, |
| 51 | + NumericTest as _NumericTest, |
| 52 | + DifficultParametersTest as _DifficultParametersTest, |
| 53 | + FetchLimitOffsetTest as _FetchLimitOffsetTest, |
| 54 | + ) |
53 | 55 |
|
54 | 56 | class TimestampMicrosecondsTest(_TimestampMicrosecondsTest): |
55 | 57 | data = datetime.datetime(2012, 10, 15, 12, 57, 18, 396, tzinfo=pytz.UTC) |
56 | 58 |
|
57 | | - # TimestampMicrosecondsTest literal() no literal_execute parameter? Go back and add to literal()" |
58 | | - @pytest.mark.skip("") |
59 | | - def test_literal(self, literal_round_trip): |
60 | | - pass |
61 | | - |
62 | 59 | def test_select_direct(self, connection): |
63 | 60 | # This func added because this test was failing when passed the |
64 | 61 | # UTC timezone. |
@@ -93,14 +90,12 @@ def test_round_trip_executemany(self, connection): |
93 | 90 | test_round_trip_executemany |
94 | 91 | ) |
95 | 92 |
|
96 | | - # TrueDivTest issue because SQLAlchemy always rounded down. The assertion cannot reconcile 1.5==1 thusly |
97 | 93 | class TrueDivTest(_TrueDivTest): |
98 | | - @pytest.mark.skip("Bigquery rounds based on datatype") |
| 94 | + @pytest.mark.skip("BQ rounds based on datatype") |
99 | 95 | def test_floordiv_integer(self): |
100 | | - # TODO: possibly compare rounded result instead? |
101 | 96 | pass |
102 | 97 |
|
103 | | - @pytest.mark.skip("Bigquery rounds based on datatype") |
| 98 | + @pytest.mark.skip("BQ rounds based on datatype") |
104 | 99 | def test_floordiv_integer_bound(self): |
105 | 100 | pass |
106 | 101 |
|
@@ -138,7 +133,6 @@ class InsertBehaviorTest(_InsertBehaviorTest): |
138 | 133 | def test_insert_from_select_autoinc(cls): |
139 | 134 | pass |
140 | 135 |
|
141 | | - # TODO: Find cause of error |
142 | 136 | @pytest.mark.skip( |
143 | 137 | "BQ has no autoinc and client-side defaults can't work for select." |
144 | 138 | ) |
@@ -167,7 +161,7 @@ def run(type_, input_, output, filter_=None, check_scale=False): |
167 | 161 |
|
168 | 162 | where_expr = True |
169 | 163 |
|
170 | | - # Adding where clause |
| 164 | + # Adding where clause for 2.0 compatibility |
171 | 165 | connection.execute(t.delete().where(where_expr)) |
172 | 166 |
|
173 | 167 | # test that this is actually a number! |
|
0 commit comments