Skip to content

Commit f59ccf4

Browse files
author
Bryan Bartley
committed
Merge branch 'master' into 56-solid_diamonds
2 parents 46b1a42 + c45e04e commit f59ccf4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

sbol_factory/sbol_factory.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ class SBOLFactory():
7777
namespace_to_prefix = {}
7878

7979
def __new__(cls, module_name, ontology_path, ontology_namespace, verbose=False):
80+
if verbose is False:
81+
logging.disable('INFO')
8082
SBOLFactory.graph.parse(ontology_path, format=rdflib.util.guess_format(ontology_path))
8183
for prefix, ns in SBOLFactory.graph.namespaces():
8284
SBOLFactory.namespace_to_prefix[str(ns)] = prefix

test/test_validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def test_invalid_sbol(self):
3030
v = doc.validate()
3131
assert len(v.errors) == 2, f'Expected 2 errors, found {len(v.errors)}'
3232
assert str(v.errors[0]) == 'https://test.org/water: Too few values for property types. Expected 1, found 0'
33-
assert str(v.errors[1]) == 'https://test.org/water: Less than 1 values on <https://test.org/water>->sbol:type'
33+
assert str(v.errors[1]) == 'https://test.org/water: http://sbols.org/v3#type: Less than 1 values on <https://test.org/water>->sbol:type'
3434
assert not v.warnings, "".join(str(e) for e in doc.validate().warnings)
3535

3636
def test_invalid_extension(self):

0 commit comments

Comments
 (0)