From 45eab59f38aae326a4970767f9bc7119bef339b9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 16 Oct 2023 13:37:35 +0200 Subject: Adding upstream version 18.13.0. Signed-off-by: Daniel Baumann --- tests/test_schema.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/test_schema.py') diff --git a/tests/test_schema.py b/tests/test_schema.py index 626fa11..34c507d 100644 --- a/tests/test_schema.py +++ b/tests/test_schema.py @@ -272,3 +272,8 @@ class TestSchema(unittest.TestCase): str(ctx.exception), "Table z must match the schema's nesting level: 2.", ) + + def test_has_column(self): + schema = MappingSchema({"x": {"c": "int"}}) + self.assertTrue(schema.has_column("x", exp.column("c"))) + self.assertFalse(schema.has_column("x", exp.column("k"))) -- cgit v1.2.3