From 7243a9424d2991dba605dedd6236860d861d5f97 Mon Sep 17 00:00:00 2001 From: Wolfgang Fahl Date: Mon, 29 Jan 2024 11:59:04 +0100 Subject: [PATCH] tries making tests less verbose --- tests/test_docstring_parser.py | 2 +- tests/test_linkml.py | 4 ++-- tests/test_linkml_schema.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_docstring_parser.py b/tests/test_docstring_parser.py index 7477143..f9ddd85 100644 --- a/tests/test_docstring_parser.py +++ b/tests/test_docstring_parser.py @@ -35,7 +35,7 @@ def test_parse_docstring(self): parser = DocstringParser() class_description, attributes = parser.parse(docstring) debug = self.debug - debug = True + #debug = True if debug: print(class_description) print(json.dumps(attributes, indent=2)) diff --git a/tests/test_linkml.py b/tests/test_linkml.py index 24974d2..717c060 100644 --- a/tests/test_linkml.py +++ b/tests/test_linkml.py @@ -28,7 +28,7 @@ def get_linkml_schema(self): get the example Royals LinkML schema """ debug = self.debug - debug = True + #debug = True schema = Schema( id="http://royal-family.bitplan.com", name="royals", @@ -94,7 +94,7 @@ def test_rdf_dumper(self): # Step 3: Serialize the RDF graph for debugging or saving rdf_output = rdf_dumper.serialize() - debug = True + #debug = True if debug: print(rdf_output) # Optionally, save the RDF graph to a file diff --git a/tests/test_linkml_schema.py b/tests/test_linkml_schema.py index 3bc0162..24ec437 100644 --- a/tests/test_linkml_schema.py +++ b/tests/test_linkml_schema.py @@ -20,7 +20,7 @@ def test_linkml_types(self): """ uri = "https://raw.githubusercontent.com/linkml/linkml-runtime/main/linkml_runtime/linkml_model/model/schema/types.yaml" schema = Schema.load_from_yaml_url(uri) - debug = True + #debug = True if debug: print(json.dumps(schema.to_dict(), indent=2, default=str)) print(schema.to_yaml())