Skip to content

Commit

Permalink
[#3428] one more db._get_engine replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Apr 7, 2017
1 parent ce33d8e commit 5fa9379
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ckanext/datapusher/tests/test.py
Expand Up @@ -68,8 +68,7 @@ def setup_class(cls):
ctd.CreateTestData.create()
cls.sysadmin_user = model.User.get('testsysadmin')
cls.normal_user = model.User.get('annafan')
engine = db._get_engine(
{'connection_url': config['ckan.datastore.write_url']})
engine = db.get_write_engine()
cls.Session = orm.scoped_session(orm.sessionmaker(bind=engine))
set_url_type(
model.Package.get('annakarenina').resources, cls.sysadmin_user)
Expand Down

0 comments on commit 5fa9379

Please sign in to comment.