From 79212a8ad7ab3bd7d2e357c68a4cf0061fbbbab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?= Date: Thu, 28 Nov 2024 09:33:54 -0600 Subject: [PATCH] Test with nullable integer type --- target_postgres/tests/test_types.py | 1 + 1 file changed, 1 insertion(+) diff --git a/target_postgres/tests/test_types.py b/target_postgres/tests/test_types.py index 428fc8f..d7cf211 100644 --- a/target_postgres/tests/test_types.py +++ b/target_postgres/tests/test_types.py @@ -56,6 +56,7 @@ def test_datetime_string(self, to_postgres: JSONSchemaToPostgres): ("jsonschema", "expected"), [ pytest.param({"type": "integer"}, BIGINT, id="default"), + pytest.param({"type": ["integer", "null"]}, BIGINT, id="default-nullable"), pytest.param( {"type": "integer", "maximum": 2**15 - 1}, SMALLINT,