3.1. migration_test_repo package

3.1.1. Submodules

3.1.2. migration_test_repo.__main__ module

Code for creating configuration files in this repo

Author:Arthur Goldberg <Arthur.Goldberg@mssm.edu>
Date:2019-03-21
Copyright:2019, Karr Lab
License:MIT
class migration_test_repo.__main__.Utils[source]

Bases: object

static make_automated_migration_config_file(parser, args)[source]
static make_data_file(parser, args)[source]
static make_schema_changes_template(parser, args)[source]
static not_supported(parser, args)[source]
static validate_schema(parser, args)[source]
static validate_schema_changes_file(parser, args)[source]
migration_test_repo.__main__.main(parser, args)[source]

3.1.3. migration_test_repo.core module

Test repo for migration

Author:Arthur Goldberg <Arthur.Goldberg@mssm.edu>
Date:2019-03-21
Copyright:2019, Karr Lab
License:MIT
class migration_test_repo.core.GitMetadata(**kwargs)[source]

Bases: obj_model.core.Model

class Meta[source]

Bases: obj_model.core.Meta

attribute_order = ('url', 'branch', 'revision')[source]
attributes = {'branch': <obj_model.core.StringAttribute object>, 'revision': <obj_model.core.StringAttribute object>, 'url': <obj_model.core.StringAttribute object>}[source]
indexed_attrs_tuples = ()[source]
inheritance = (<class 'migration_test_repo.core.GitMetadata'>,)[source]
local_attributes = {'branch': <obj_model.core.LocalAttribute object>, 'revision': <obj_model.core.LocalAttribute object>, 'url': <obj_model.core.LocalAttribute object>}[source]
ordering = ()[source]
primary_attribute = None[source]
related_attributes = {}[source]
tabular_orientation = 2[source]
unique_together = ()[source]
verbose_name = 'Git metadata'[source]
verbose_name_plural = 'Git metadatas'[source]
branch = <obj_model.core.StringAttribute object>[source]
objects = <obj_model.core.Manager object>[source]
revision = <obj_model.core.StringAttribute object>[source]
url = <obj_model.core.StringAttribute object>[source]
class migration_test_repo.core.Reference(**kwargs)[source]

Bases: obj_model.core.Model

class Meta[source]

Bases: obj_model.core.Meta

attribute_order = ('id', 'published')[source]
attributes = {'id': <obj_model.core.SlugAttribute object>, 'published': <obj_model.core.BooleanAttribute object>}[source]
indexed_attrs_tuples = ()[source]
inheritance = (<class 'migration_test_repo.core.Reference'>,)[source]
local_attributes = {'id': <obj_model.core.LocalAttribute object>, 'published': <obj_model.core.LocalAttribute object>, 'tests': <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]
published = <obj_model.core.BooleanAttribute object>[source]
class migration_test_repo.core.Test(**kwargs)[source]

Bases: obj_model.core.Model

class Meta[source]

Bases: obj_model.core.Meta

attribute_order = ('id', 'name', 'existing_attr')[source]
attributes = {'existing_attr': <obj_model.core.IntegerAttribute object>, 'id': <obj_model.core.SlugAttribute object>, 'name': <obj_model.core.StringAttribute object>, 'references': <obj_model.core.ManyToManyAttribute object>}[source]
indexed_attrs_tuples = ()[source]
inheritance = (<class 'migration_test_repo.core.Test'>,)[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>}[source]
ordering = ('id',)[source]
primary_attribute = <obj_model.core.SlugAttribute object>[source]
related_attributes = {}[source]
unique_together = ()[source]
verbose_name = 'Test'[source]
verbose_name_plural = 'Tests'[source]
existing_attr = <obj_model.core.IntegerAttribute 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]

3.1.4. Module contents