Skip to content

Commit

Permalink
Merge 9793835 into 49e39f3
Browse files Browse the repository at this point in the history
  • Loading branch information
gunthercox committed Sep 13, 2018
2 parents 49e39f3 + 9793835 commit 4434b67
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions chatterbot/storage/sql_storage.py
Expand Up @@ -66,7 +66,7 @@ def set_sqlite_pragma(dbapi_connection, connection_record):
)

if not self.engine.dialect.has_table(self.engine, 'Statement'):
self.create()
self.create_database()

self.Session = sessionmaker(bind=self.engine, expire_on_commit=True)

Expand Down Expand Up @@ -374,7 +374,7 @@ def drop(self):
from chatterbot.ext.sqlalchemy_app.models import Base
Base.metadata.drop_all(self.engine)

def create(self):
def create_database(self):
"""
Populate the database with the tables.
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/base_case.py
Expand Up @@ -64,7 +64,7 @@ def setUp(self):
Create the tables in the database before each test is run.
"""
super(ChatBotSQLTestCase, self).setUp()
self.chatbot.storage.create()
self.chatbot.storage.create_database()

def get_kwargs(self):
kwargs = super(ChatBotSQLTestCase, self).get_kwargs()
Expand Down
2 changes: 1 addition & 1 deletion tests/storage_adapter_tests/test_sqlalchemy_adapter.py
Expand Up @@ -16,7 +16,7 @@ def setUp(self):
"""
Create the tables in the database before each test is run.
"""
self.adapter.create()
self.adapter.create_database()

def tearDown(self):
"""
Expand Down

0 comments on commit 4434b67

Please sign in to comment.