File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 1- import unittest
2-
31from linkml_runtime .linkml_model .meta import SchemaDefinition
42from linkml_runtime .loaders import yaml_loader
53from tests .test_issues .environment import env
64
75# https://github.com/linkml/linkml/issues/3
86
97
10- class IncludeSchemaTestCase (unittest .TestCase ):
11- """include_schema.yaml produces a Python exception on an uncaught error"""
12-
13- # "Awaiting fix for issue #3"
14- def test_include_schema (self ):
15- inp = yaml_loader .load (env .input_path ("include_schema.yaml" ), SchemaDefinition )
8+ def test_include_schema ():
9+ """
10+ Test for GitHub issue #3: include_schema.yaml produces a Python exception on an uncaught error
1611
12+ This is a regression test to ensure schema inclusion works without throwing exceptions.
13+ """
14+ # Load schema file - this should not raise an exception
15+ inp = yaml_loader .load (env .input_path ("include_schema.yaml" ), SchemaDefinition )
1716
18- if __name__ == "__main__" :
19- unittest .main ()
17+ # Verify the schema was loaded successfully
18+ assert inp is not None
19+ assert isinstance (inp , SchemaDefinition )
You can’t perform that action at this time.
0 commit comments