Skip to content

Commit 4f09a0b

Browse files
committed
test: add test to check that the PG.OID param type is correct
1 parent c8a5b65 commit 4f09a0b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/unit/test_param_types.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,20 @@ def test_it(self):
7171
found = param_types.PG_JSONB
7272

7373
self.assertEqual(found, expected)
74+
75+
76+
class Test_OidParamType(unittest.TestCase):
77+
def test_it(self):
78+
from google.cloud.spanner_v1 import Type
79+
from google.cloud.spanner_v1 import TypeCode
80+
from google.cloud.spanner_v1 import TypeAnnotationCode
81+
from google.cloud.spanner_v1 import param_types
82+
83+
expected = Type(
84+
code=TypeCode.INT64,
85+
type_annotation=TypeAnnotationCode.PG_OID,
86+
)
87+
88+
found = param_types.PG_OID
89+
90+
self.assertEqual(found, expected)

0 commit comments

Comments
 (0)