Skip to content

Instantly share code, notes, and snippets.

@hsolbrig
Created July 8, 2020 19:06
Show Gist options
  • Save hsolbrig/9fd6d4fd2f0e8b0cfb15b685c80170d5 to your computer and use it in GitHub Desktop.
Save hsolbrig/9fd6d4fd2f0e8b0cfb15b685c80170d5 to your computer and use it in GitHub Desktop.
How to see the fully processed biolinkml content
import unittest
from biolinkml.utils.schemaloader import SchemaLoader
from biolinkml.utils.yamlutils import as_yaml
from tests.test_issues.environment import env
from tests.utils.test_environment import TestEnvironmentTestCase
class Issue18TestCase(TestEnvironmentTestCase):
env = env
def test_issue_18(self):
""" Make sure that inverses are automatically generated """
env.generate_single_file('issue_18.yaml',
lambda: as_yaml(SchemaLoader(env.input_path('issue_18.yaml')).resolve()),
value_is_returned=True)
if __name__ == '__main__':
unittest.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment