Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
uralbash committed Sep 28, 2017
1 parent fc7984c commit 4aae58b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlalchemy_mptt/tests/cases/integrity.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def test_level_odd_when_left_odd_and_vice_versa(self):
WHERE modulo = 1
"""
table = self.model
level_delta = 0 if table.get_default_level() % 2 else 1
level_delta = pow(0, table.get_default_level() % 2)
modulo = (table.left - table.level + level_delta + 2) % 2
nop = self.session.query(table).filter(modulo == 1).all()
self.assertEqual(nop, [])
Expand Down

0 comments on commit 4aae58b

Please sign in to comment.