Clean up assertion
This commit is contained in:
parent
f49cc4e901
commit
ddc1f803c0
@ -44,7 +44,5 @@ def test_filter_accepts_row(pattern, data, expected):
|
|||||||
idx = filter_model.index(0, 0)
|
idx = filter_model.index(0, 0)
|
||||||
assert idx.isValid()
|
assert idx.isValid()
|
||||||
|
|
||||||
if expected:
|
row_count = filter_model.rowCount(idx)
|
||||||
assert filter_model.rowCount(idx) == 1
|
assert row_count == (1 if expected else 0)
|
||||||
else:
|
|
||||||
assert filter_model.rowCount(idx) == 0
|
|
||||||
|
Loading…
Reference in New Issue
Block a user