Stopping the use of deprecated get_session()
And replacing with get_reader_session() or get_writer_session() as appropriate. Change-Id: Ia0260d163c90c85434ffc5fe19d2c421387fdcff
This commit is contained in:
@@ -72,7 +72,7 @@ class NFPDBTestCase(SqlTestCase):
|
||||
super(NFPDBTestCase, self).setUp()
|
||||
self.ctx = context.get_admin_context()
|
||||
self.nfp_db = NFPDB()
|
||||
self.session = db_api.get_session()
|
||||
self.session = db_api.get_writer_session()
|
||||
|
||||
def create_network_function(self, attributes=None):
|
||||
if attributes is None:
|
||||
|
||||
Reference in New Issue
Block a user