Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
Automated adding outputs from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Feb 26, 2021
1 parent 087d029 commit 30ec345
Show file tree
Hide file tree
Showing 9 changed files with 77 additions and 5 deletions.
Binary file modified tests/test_issues/output/__pycache__/importee.cpython-38.pyc
Binary file not shown.
Binary file not shown.
6 changes: 2 additions & 4 deletions tests/test_issues/output/issue_167b.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# Auto generated from issue_167b.yaml by pythongen.py version: 0.9.0
# Generation date: 2021-02-25 00:02
# Schema: annotations_test
#

# id: http://example.org/tests/issue167b
# description:
# license: https://creativecommons.org/publicdomain/zero/1.0/
Expand Down Expand Up @@ -34,6 +31,7 @@
# Namespaces
BIOLINKML = CurieNamespace('biolinkml', 'https://w3id.org/biolink/biolinkml/')
EX = CurieNamespace('ex', 'http://example.org/')
META = CurieNamespace('meta', 'https://w3id.org/biolink/biolinkml/meta/')
DEFAULT_ = EX


Expand Down
74 changes: 74 additions & 0 deletions tests/test_issues/output/issue_167b2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@

# id: http://example.org/tests/issue167b
# description:
# license: https://creativecommons.org/publicdomain/zero/1.0/

import dataclasses
import sys
import re
from typing import Optional, List, Union, Dict, ClassVar, Any
from dataclasses import dataclass
from biolinkml.meta import EnumDefinition, PermissibleValue, PvFormulaOptions

from biolinkml.utils.slot import Slot
from biolinkml.utils.metamodelcore import empty_list, empty_dict, bnode
from biolinkml.utils.yamlutils import YAMLRoot, extended_str, extended_float, extended_int
if sys.version_info < (3, 7, 6):
from biolinkml.utils.dataclass_extensions_375 import dataclasses_init_fn_with_kwargs
else:
from biolinkml.utils.dataclass_extensions_376 import dataclasses_init_fn_with_kwargs
from biolinkml.utils.formatutils import camelcase, underscore, sfx
from biolinkml.utils.enumerations import EnumDefinitionImpl
from rdflib import Namespace, URIRef
from biolinkml.utils.curienamespace import CurieNamespace


metamodel_version = "1.7.0"

# Overwrite dataclasses _init_fn to add **kwargs in __init__
dataclasses._init_fn = dataclasses_init_fn_with_kwargs

# Namespaces
BIOLINKML = CurieNamespace('biolinkml', 'https://w3id.org/biolink/biolinkml/')
EX = CurieNamespace('ex', 'http://example.org/')
DEFAULT_ = EX


# Types

# Class references



class MyClass(YAMLRoot):
"""
Annotations as tag value pairs. Note that altLabel is defined in the default namespace, not in the SKOS namespace
"""
_inherited_slots: ClassVar[List[str]] = []

class_class_uri: ClassVar[URIRef] = EX.MyClass
class_class_curie: ClassVar[str] = "ex:MyClass"
class_name: ClassVar[str] = "my class"
class_model_uri: ClassVar[URIRef] = EX.MyClass


class MyClass2(YAMLRoot):
"""
-> This form of annotations is a tag/value format, which allows annotations to be annotated. Note, however, that
the annotation source is NOT a CURIE, rather just a string.
"""
_inherited_slots: ClassVar[List[str]] = []

class_class_uri: ClassVar[URIRef] = EX.MyClass2
class_class_curie: ClassVar[str] = "ex:MyClass2"
class_name: ClassVar[str] = "my class 2"
class_model_uri: ClassVar[URIRef] = EX.MyClass2


# Enumerations


# Slots
class slots:
pass

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/test_issues/output/issue_344_context.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"_comments": "Auto generated from issue_344.yaml by jsonldcontextgen.py version: 0.1.1\nGeneration date: 2021-02-25 00:02\nSchema: annotations_test\n\nid: http://example.org/tests/issue344\ndescription: \nlicense: \n",
"_comments": "Auto generated from issue_344.yaml by jsonldcontextgen.py version: 0.1.1\nid: http://example.org/tests/issue344\ndescription: \nlicense: \n",
"@context": {
"type": "@type",
"GO": {
Expand Down

0 comments on commit 30ec345

Please sign in to comment.