Skip to content

Commit 19a0c84

Browse files
committed
test(datatype, geometryhex): ensure support for all protocols
1 parent 79be298 commit 19a0c84

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

test/integration/datatype/_generate_test_datatype_tables.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@ def list(cls) -> typing.List["RedshiftDatatypes"]:
3535
(
3636
"ST_GeomFromText('LINESTRING(1 2,3 4,5 6,7 8,9 10,11 12,13 14,15 16,17 18,19 20)')",
3737
(
38-
"01020000000A000000000000000000F03F000000000000004000000000000008400000000000001040000000000000144000000000"
39-
"000018400000000000001C400000000000002040000000000000224000000000000024400000000000002640000000000000284000"
40-
"00000000002A400000000000002C400000000000002E40000000000000304000000000000031400000000000003240000000000000"
38+
"01020000000a000000000000000000f03f000000000000004000000000000008400000000000001040000000000000144000000000"
39+
"000018400000000000001c400000000000002040000000000000224000000000000024400000000000002640000000000000284000"
40+
"00000000002a400000000000002c400000000000002e40000000000000304000000000000031400000000000003240000000000000"
4141
"33400000000000003440"
4242
),
4343
),
4444
(
4545
"ST_GeomFromText('POLYGON((0 0,0 1,1 1,1 0,0 0))',4326)",
4646
(
47-
"0103000020E61000000100000005000000000000000000000000000000000000000000000000000000000000000000F03F00000000"
48-
"0000F03F000000000000F03F000000000000F03F000000000000000000000000000000000000000000000000"
47+
"0103000020e61000000100000005000000000000000000000000000000000000000000000000000000000000000000f03f00000000"
48+
"0000f03f000000000000f03f000000000000f03f000000000000000000000000000000000000000000000000"
4949
),
5050
),
5151
(
@@ -54,8 +54,8 @@ def list(cls) -> typing.List["RedshiftDatatypes"]:
5454
"000000F03F000000000000F03F000000000000F03F000000000000000000000000000000000000000000000000')"
5555
),
5656
(
57-
"0103000020E61000000100000005000000000000000000000000000000000000000000000000000000000000000000F03F000000"
58-
"000000F03F000000000000F03F000000000000F03F000000000000000000000000000000000000000000000000"
57+
"0103000020e61000000100000005000000000000000000000000000000000000000000000000000000000000000000f03f000000"
58+
"000000f03f000000000000f03f000000000000f03f000000000000000000000000000000000000000000000000"
5959
),
6060
),
6161
(
@@ -66,9 +66,9 @@ def list(cls) -> typing.List["RedshiftDatatypes"]:
6666
"0033400000000000003440')"
6767
),
6868
(
69-
"01020000000A000000000000000000F03F0000000000000040000000000000084000000000000010400000000000001440000000"
70-
"00000018400000000000001C4000000000000020400000000000002240000000000000244000000000000026400000000000002840"
71-
"0000000000002A400000000000002C400000000000002E400000000000003040000000000000314000000000000032400000000000"
69+
"01020000000a000000000000000000f03f0000000000000040000000000000084000000000000010400000000000001440000000"
70+
"00000018400000000000001c4000000000000020400000000000002240000000000000244000000000000026400000000000002840"
71+
"0000000000002a400000000000002c400000000000002e400000000000003040000000000000314000000000000032400000000000"
7272
"0033400000000000003440"
7373
),
7474
),
@@ -78,8 +78,8 @@ def list(cls) -> typing.List["RedshiftDatatypes"]:
7878
"F000000000000F03F000000000000F03F000000000000F03F000000000000000000000000000000000000000000000000')"
7979
),
8080
(
81-
"01030000000100000005000000000000000000000000000000000000000000000000000000000000000000F03"
82-
"F000000000000F03F000000000000F03F000000000000F03F000000000000000000000000000000000000000000000000"
81+
"01030000000100000005000000000000000000000000000000000000000000000000000000000000000000f03"
82+
"f000000000000f03f000000000000f03f000000000000f03f000000000000000000000000000000000000000000000000"
8383
),
8484
),
8585
)

test/integration/datatype/test_datatypes.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,10 @@ def test_datatype_recv_support(db_kwargs, datatype, client_protocol):
7979

8080

8181
@pytest.mark.skip(reason="manual")
82+
@pytest.mark.parametrize("client_protocol", ClientProtocolVersion.list())
8283
@pytest.mark.parametrize("_input", redshift_datatype_testcases)
83-
def test_redshift_specific_recv_support(db_kwargs, _input):
84+
def test_redshift_specific_recv_support(db_kwargs, _input, client_protocol):
85+
db_kwargs["client_protocol_version"] = client_protocol
8486
datatype, data = _input
8587
test_val, exp_val = data
8688

0 commit comments

Comments
 (0)