diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2012-07-14 12:36:40 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2012-07-14 12:55:14 -0500 |
commit | 35a24fc26393b4aec1809885884112e35db7afe0 (patch) | |
tree | 898837976f291ea69a58d00b200395ea5d975d10 /mediagoblin/tests/test_sql_migrations.py | |
parent | 8a22617ffeebfdce610dac7127d57e0721d3516e (diff) | |
download | mediagoblin-35a24fc26393b4aec1809885884112e35db7afe0.tar.lz mediagoblin-35a24fc26393b4aec1809885884112e35db7afe0.tar.xz mediagoblin-35a24fc26393b4aec1809885884112e35db7afe0.zip |
Moving the "dependency injection printer tools" over to tools/common.py
Diffstat (limited to 'mediagoblin/tests/test_sql_migrations.py')
-rw-r--r-- | mediagoblin/tests/test_sql_migrations.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/mediagoblin/tests/test_sql_migrations.py b/mediagoblin/tests/test_sql_migrations.py index 8ef46fdc..e3b55634 100644 --- a/mediagoblin/tests/test_sql_migrations.py +++ b/mediagoblin/tests/test_sql_migrations.py @@ -27,6 +27,7 @@ from migrate import changeset from mediagoblin.db.sql.base import GMGTableBase from mediagoblin.db.sql.util import MigrationManager, RegisterMigration +from mediagoblin.tools.common import CollectingPrinter # This one will get filled with local migrations @@ -520,18 +521,6 @@ def _insert_migration3_objects(session): session.commit() -class CollectingPrinter(object): - def __init__(self): - self.collection = [] - - def __call__(self, string): - self.collection.append(string) - - @property - def combined_string(self): - return u''.join(self.collection) - - def create_test_engine(): from sqlalchemy import create_engine engine = create_engine('sqlite:///:memory:', echo=False) |