Add an explicit assert in an attempt to placate CodeFactor

This commit is contained in:
Jayme Howard 2019-05-16 20:19:25 -05:00 committed by Mathieu Comandon
parent 77c31f80b1
commit 24582a348d

View file

@ -146,7 +146,7 @@ class TestSort(TestCase):
row2 = self.FakeRow({'name': 1})
model = self.FakeModel([row1, row2])
with self.assertRaises(TypeError):
sort_func(model, 0, 1, 'name') == -1
assert sort_func(model, 0, 1, 'name') == -1
def test_both_none(self):
row1 = self.FakeRow({})