~barry/mailman/lp1423756

« back to all changes in this revision

Viewing changes to src/mailman/database/tests/test_factory.py

  • Committer: Barry Warsaw
  • Date: 2015-01-05 01:20:33 UTC
  • mfrom: (7264.4.66 py3)
  • Revision ID: barry@list.org-20150105012033-zdrw9c2odhpf22fz
Merge the Python 3 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
"""Test database schema migrations"""
19
19
 
20
 
from __future__ import absolute_import, print_function, unicode_literals
21
 
 
22
 
__metaclass__ = type
23
20
__all__ = [
24
21
    'TestSchemaManager',
25
22
    ]
28
25
import unittest
29
26
import alembic.command
30
27
 
31
 
from mock import patch
32
 
from sqlalchemy import MetaData, Table, Column, Integer, Unicode
33
 
from sqlalchemy.exc import ProgrammingError, OperationalError
34
 
from sqlalchemy.schema import Index
35
 
 
36
28
from mailman.config import config
37
29
from mailman.database.alembic import alembic_cfg
38
30
from mailman.database.factory import LAST_STORM_SCHEMA_VERSION, SchemaManager
39
31
from mailman.database.model import Model
40
32
from mailman.interfaces.database import DatabaseError
41
33
from mailman.testing.layers import ConfigLayer
 
34
from mock import patch
 
35
from sqlalchemy import MetaData, Table, Column, Integer, Unicode
 
36
from sqlalchemy.exc import ProgrammingError, OperationalError
 
37
from sqlalchemy.schema import Index
42
38
 
43
39
 
44
40