3.1. test_repo package

3.1.1. Submodules

3.1.2. test_repo.__main__ module

test_repo command line interface

Author:Name <email>
Date:2019-2-12
Copyright:2019, Karr Lab
License:MIT
class test_repo.__main__.App(label=None, **kw)[source]

Bases: cement.core.foundation.App

Command line application

class Meta[source]

Bases: object

base_controller = 'base'[source]
handlers = [<class 'test_repo.__main__.BaseController'>, <class 'test_repo.__main__.Command3WithArgumentsController'>][source]
label = 'test_repo'[source]
class test_repo.__main__.BaseController(*args, **kw)[source]

Bases: cement.ext.ext_argparse.ArgparseController

Base controller for command line application

class Meta[source]

Bases: object

arguments = [(['-v', '--version'], {'action': 'version', 'version': '0.0.1'})][source]
description = 'test_repo'[source]
label = 'base'[source]
cmd1()[source]

command_1 description

cmd2()[source]

command_2 description

class test_repo.__main__.Command3WithArgumentsController(*args, **kw)[source]

Bases: cement.ext.ext_argparse.ArgparseController

Command3 description

class Meta[source]

Bases: object

arguments = [(['arg_1'], {'type': <class 'str'>, 'help': 'Description of arg_1'}), (['arg_2'], {'type': <class 'str'>, 'help': 'Description of arg_2'}), (['--opt-arg-3'], {'type': <class 'str'>, 'default': 'default value of opt-arg-1', 'help': 'Description of opt-arg-3'}), (['--opt-arg-4'], {'type': <class 'float'>, 'default': nan, 'help': 'Description of opt-arg-4'})][source]
description = 'Command3 description'[source]
label = 'command-3'[source]
stacked_on = 'base'[source]
stacked_type = 'nested'[source]
test_repo.__main__.main()[source]

3.1.3. test_repo.core module

Example schema for testing migration

Author:Arthur Goldberg <Arthur.Goldberg@mssm.edu>
Date:2019-2-12
Copyright:2019, Karr Lab
License:MIT
class test_repo.core.Reference(**kwargs)[source]

Bases: obj_model.core.Model

class Meta[source]

Bases: obj_model.core.Meta

attribute_order = ('id', 'value')[source]
attributes = {'id': <obj_model.core.SlugAttribute object>, 'value': <obj_model.core.StringAttribute object>}[source]
indexed_attrs_tuples = ()[source]
inheritance = (<class 'test_repo.core.Reference'>,)[source]
local_attributes = {'id': <obj_model.core.LocalAttribute object>, 'tests': <obj_model.core.LocalAttribute object>, 'value': <obj_model.core.LocalAttribute object>}[source]
ordering = ('id',)[source]
primary_attribute = <obj_model.core.SlugAttribute object>[source]
related_attributes = {'tests': <obj_model.core.ManyToManyAttribute object>}[source]
unique_together = ()[source]
verbose_name = 'Reference'[source]
verbose_name_plural = 'References'[source]
id = <obj_model.core.SlugAttribute object>[source]
objects = <obj_model.core.Manager object>[source]
value = <obj_model.core.StringAttribute object>[source]
class test_repo.core.TestNew(**kwargs)[source]

Bases: obj_model.core.Model

class Meta[source]

Bases: obj_model.core.Meta

attribute_order = ('id', 'name', 'revision', 'existing_attr')[source]
attributes = {'existing_attr': <obj_model.core.StringAttribute object>, 'id': <obj_model.core.SlugAttribute object>, 'name': <obj_model.core.StringAttribute object>, 'references': <obj_model.core.ManyToManyAttribute object>, 'revision': <obj_model.core.StringAttribute object>}[source]
indexed_attrs_tuples = ()[source]
inheritance = (<class 'test_repo.core.TestNew'>,)[source]
local_attributes = {'existing_attr': <obj_model.core.LocalAttribute object>, 'id': <obj_model.core.LocalAttribute object>, 'name': <obj_model.core.LocalAttribute object>, 'references': <obj_model.core.LocalAttribute object>, 'revision': <obj_model.core.LocalAttribute object>}[source]
ordering = ('id',)[source]
primary_attribute = <obj_model.core.SlugAttribute object>[source]
related_attributes = {}[source]
tabular_orientation = 2[source]
unique_together = ()[source]
verbose_name = 'Test new'[source]
verbose_name_plural = 'Test news'[source]
existing_attr = <obj_model.core.StringAttribute object>[source]
id = <obj_model.core.SlugAttribute object>[source]
name = <obj_model.core.StringAttribute object>[source]
objects = <obj_model.core.Manager object>[source]
references = <obj_model.core.ManyToManyAttribute object>[source]
revision = <obj_model.core.StringAttribute object>[source]

3.1.4. Module contents