diff --git a/tests/test_metadata.py b/tests/test_metadata.py index e5a927b4..2b6e4f96 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -231,6 +231,13 @@ def test_ignore_constraints(self) -> None: msg=f"Table {table.name} has non-primary key constraints defined", ) + def test_bad_schema_type(self) -> None: + """Test that an error is raised if an object with the wrong type is + passed to the builder. + """ + with self.assertRaises(TypeError): + MetaDataBuilder("not_a_schema") + if __name__ == "__main__": unittest.main()