Skip to content

Commit

Permalink
Update tests, drop_table(cascade=True) now crashes if not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
rudyryk committed Apr 11, 2017
1 parent 3ef29d4 commit 196a49b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def tearDown(self):
for k, objects in self.managers.items():
with self.manager(objects, allow_sync=True):
for model in reversed(self.models):
model.drop_table(fail_silently=True, cascade=True)
model.drop_table(fail_silently=True)

self.managers = None

Expand Down Expand Up @@ -323,7 +323,7 @@ def tearDownClass(cls, *args, **kwargs):
database.set_allow_sync(True)
with cls.current_database(database):
for model in reversed(cls.models):
model.drop_table(fail_silently=True, cascade=True)
model.drop_table(fail_silently=True)
database.set_allow_sync(False)
cls.databases = None

Expand Down

0 comments on commit 196a49b

Please sign in to comment.