Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
CastixGitHub committed Jul 6, 2020
1 parent 20d3613 commit f871f52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/base.py
Expand Up @@ -10,7 +10,7 @@
from sqlalchemy import Integer, Column, Unicode, inspect
from sqlalchemy.orm import sessionmaker, scoped_session
from sqlalchemy.ext.declarative import declarative_base
from zope.sqlalchemy import ZopeTransactionExtension
from zope.sqlalchemy import register
from sqlalchemy import event

import ming
Expand Down Expand Up @@ -39,8 +39,8 @@ class Globals():
class FakeSQLAModel(object):
def __init__(self):
self.DeclarativeBase = declarative_base()
self.DBSession = scoped_session(sessionmaker(autoflush=True, autocommit=False,
extension=ZopeTransactionExtension()))
self.DBSession = scoped_session(sessionmaker(autoflush=True, autocommit=False))
register(self.DBSession)

class User(self.DeclarativeBase):
__tablename__ = 'tg_user'
Expand Down

0 comments on commit f871f52

Please sign in to comment.