aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/tools.py
diff options
context:
space:
mode:
authorSebastian Spaeth <Sebastian@SSpaeth.de>2013-01-07 13:03:51 +0100
committerSebastian Spaeth <Sebastian@SSpaeth.de>2013-01-07 13:42:32 +0100
commit39dc3bf8db4a0a21220560a259574da4f2c1e12a (patch)
tree67d97368d31cd224845c214d34bf282d59601893 /mediagoblin/tests/tools.py
parenta5acfe23fadc4772fdd6fd63091c32621b94d710 (diff)
downloadmediagoblin-39dc3bf8db4a0a21220560a259574da4f2c1e12a.tar.lz
mediagoblin-39dc3bf8db4a0a21220560a259574da4f2c1e12a.tar.xz
mediagoblin-39dc3bf8db4a0a21220560a259574da4f2c1e12a.zip
Mv db.sql.base to db.base
This concludes the db.sql.* -> db.* move. Our db abstraction layer is sqlalchemy, so there is no need to a separate db.sql.* hierarchy. All tests have been run for each of the commit series to make sure everything works at every step.
Diffstat (limited to 'mediagoblin/tests/tools.py')
-rw-r--r--mediagoblin/tests/tools.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/mediagoblin/tests/tools.py b/mediagoblin/tests/tools.py
index 0e923aee..31afb08b 100644
--- a/mediagoblin/tests/tools.py
+++ b/mediagoblin/tests/tools.py
@@ -28,7 +28,7 @@ from mediagoblin import mg_globals
from mediagoblin.tools import testing
from mediagoblin.init.config import read_mediagoblin_config
from mediagoblin.db.open import setup_connection_and_db_from_config
-from mediagoblin.db.sql.base import Session
+from mediagoblin.db.base import Session
from mediagoblin.meddleware import BaseMeddleware
from mediagoblin.auth.lib import bcrypt_gen_password_hash
from mediagoblin.gmg_commands.dbupdate import run_dbupdate
@@ -219,7 +219,6 @@ def fixture_add_user(username=u'chris', password='toast',
test_user = mg_globals.database.User.find_one({'username': username})
# ... and detach from session:
- from mediagoblin.db.sql.base import Session
Session.expunge(test_user)
return test_user