Skip to content

Commit 17d3bb4

Browse files
switch from nosetest to pytest asserts in test_stepwise_delete
1 parent bd16e0f commit 17d3bb4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/test_cascading_delete.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,12 @@ def test_delete_tree():
2727

2828
@staticmethod
2929
def test_stepwise_delete():
30-
assert_false(dj.config['safemode'], 'safemode must be off for testing')
31-
assert_true(L() and A() and B() and B.C(),
32-
'schema population failed as a precondition to test')
30+
assert not dj.config['safemode'], 'safemode must be off for testing'
31+
assert L() and A() and B() and B.C(), 'schema population failed'
3332
B.C().delete(force=True)
34-
assert_false(B.C(), 'failed to delete child tables')
33+
assert not B.C(), 'failed to delete child tables'
3534
B().delete()
36-
assert_false(B(), 'failed to delete the parent table following child table deletion')
35+
assert not B(), 'failed to delete from the parent table following child table deletion'
3736

3837
@staticmethod
3938
def test_delete_tree_restricted():

0 commit comments

Comments
 (0)