Created
July 8, 2020 19:06
-
-
Save hsolbrig/9fd6d4fd2f0e8b0cfb15b685c80170d5 to your computer and use it in GitHub Desktop.
How to see the fully processed biolinkml content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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