Skip to content

Commit

Permalink
tries making tests less verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Jan 29, 2024
1 parent 8d86364 commit 7243a94
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/test_docstring_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
4 changes: 2 additions & 2 deletions tests/test_linkml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_linkml_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())

0 comments on commit 7243a94

Please sign in to comment.