Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kvesteri committed Jan 30, 2017
1 parent 2875a19 commit 95d4099
Showing 1 changed file with 29 additions and 14 deletions.
43 changes: 29 additions & 14 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,22 +156,37 @@ def teardown_method(self, method):
def create_tables(self):
self.article = sa.Table(
'article', self.metadata,
sa.Column('id', sa.Integer,
autoincrement=True,
primary_key=True,
nullable=False),
sa.Column('description', sa.UnicodeText))
sa.Column(
'id',
sa.Integer,
autoincrement=True,
primary_key=True,
nullable=False
),
sa.Column('description', sa.UnicodeText)
)
self.article_translation = sa.Table(
'article_translation', self.metadata,
sa.Column('id', sa.Integer, sa.ForeignKey('article',
ondelete="CASCADE"),
primary_key=True,
nullable=False),
sa.Column('locale', sa.types.CHAR(2),
primary_key=True,
nullable=False),
'article_translation',
self.metadata,
sa.Column(
'id',
sa.Integer,
sa.ForeignKey(
'article',
ondelete="CASCADE"
),
primary_key=True,
nullable=False
),
sa.Column(
'locale',
sa.types.CHAR(2),
primary_key=True,
nullable=False
),
sa.Column('name', sa.Unicode(255)),
sa.Column('content', sa.UnicodeText))
sa.Column('content', sa.UnicodeText)
)

def create_models(self):
class Article(ClassicBase, Translatable):
Expand Down

0 comments on commit 95d4099

Please sign in to comment.