mirror of
https://github.com/p2p-ld/nwb-linkml.git
synced 2025-01-10 14:14:27 +00:00
[tests] nocover stuff that's just from the source module
This commit is contained in:
parent
033f6c434d
commit
0a9ca82476
1 changed files with 3 additions and 3 deletions
|
@ -647,7 +647,7 @@ class NWBPydanticGenerator(PydanticGenerator):
|
||||||
|
|
||||||
sv: SchemaView
|
sv: SchemaView
|
||||||
sv = self.schemaview
|
sv = self.schemaview
|
||||||
if self.schema_map is not None:
|
if self.schema_map is not None: # pragma: no cover
|
||||||
sv.schema_map = self.schema_map
|
sv.schema_map = self.schema_map
|
||||||
schema = sv.schema
|
schema = sv.schema
|
||||||
pyschema = SchemaDefinition(
|
pyschema = SchemaDefinition(
|
||||||
|
@ -763,7 +763,7 @@ class NWBPydanticGenerator(PydanticGenerator):
|
||||||
)
|
)
|
||||||
return code
|
return code
|
||||||
|
|
||||||
def compile_module(self, module_path:Path=None, module_name:str='test') -> ModuleType:
|
def compile_module(self, module_path:Path=None, module_name:str='test') -> ModuleType: # pragma: no cover - replaced with provider
|
||||||
"""
|
"""
|
||||||
Compiles generated python code to a module
|
Compiles generated python code to a module
|
||||||
:return:
|
:return:
|
||||||
|
@ -780,7 +780,7 @@ class NWBPydanticGenerator(PydanticGenerator):
|
||||||
except NameError as e:
|
except NameError as e:
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
def compile_python(text_or_fn: str, package_path: Path = None, module_name:str='test') -> ModuleType: # pragma: no cover - replaced with provider
|
def compile_python(text_or_fn: str, package_path: Path = None, module_name:str='test') -> ModuleType:
|
||||||
"""
|
"""
|
||||||
Compile the text or file and return the resulting module
|
Compile the text or file and return the resulting module
|
||||||
@param text_or_fn: Python text or file name that references python file
|
@param text_or_fn: Python text or file name that references python file
|
||||||
|
|
Loading…
Reference in a new issue