openschemas / schemaorg

python functions for applied use of schema.org
https://openschemas.github.io/schemaorg/
Mozilla Public License 2.0
34 stars 3 forks source link

Recipe parser is not honoring verbosity level #12

Closed vsoch closed 5 years ago

vsoch commented 5 years ago

Describe the bug

The RecipeParser should not output to stdout given that MESSAGELEVEL is set to QUIET (or other that would warrant being quiet!)

To Reproduce

from schemaorg.main.parse import RecipeParser
recipe = RecipeParser(recipe_yml) 
schemas: {'SoftwareSourceCode': {'recommended': [{'softwareVersion': 'version'}, 'citation', 'identifier', 'keywords', 'license', 'url', 'sameAs', 'spatialCoverage', 'temporalCoverage', 'variableMeasured'], 'required': ['description', 'name']}, 'ImageDefinition': {'recommended': ['keywords', 'labels', 'softwareHelp', 'softwareRequirements', 'softwareVersion', 'entrypoint'], 'required': ['description', 'name', 'ContainerImage']}}
version: 1

Expected behavior Nothing printed at all :)

Version of Python schemaorg

0.0.15