Skip to content

Commit bd16e0f

Browse files
minor cleanup in tests
1 parent 9e13c21 commit bd16e0f

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

tests/test_cascading_delete.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,11 @@ def test_stepwise_delete():
3535
B().delete()
3636
assert_false(B(), 'failed to delete the parent table following child table deletion')
3737

38-
@staticmethod
39-
def test_stepwise_delete():
40-
assert_false(dj.config['safemode'], 'safemode must be off for testing')
41-
assert_true(L() and A() and B() and B.C(),
42-
'schema population failed as a precondition to test')
43-
B.C().delete(force=True)
44-
assert_false(B.C(), 'failed to delete child tables')
45-
B().delete()
46-
assert_false(B(), 'failed to delete the parent table following child table deletion')
47-
4838
@staticmethod
4939
def test_delete_tree_restricted():
5040
assert_false(dj.config['safemode'], 'safemode must be off for testing')
51-
assert_true(L() and A() and B() and B.C() and D() and E() and E.F(), 'schema is not populated')
41+
assert_true(L() and A() and B() and B.C() and D() and E() and E.F(),
42+
'schema is not populated')
5243
cond = 'cond_in_a'
5344
rel = A() & cond
5445
rest = dict(

0 commit comments

Comments
 (0)