Browse Source
remove strict equality test, check types instead
pull/10337/head
Auguste "laggron42" Charpentier
8 months ago
No known key found for this signature in database
GPG Key ID: 5423B476C2E1CC44
1 changed files with
2 additions and
2 deletions
-
tests/test_ui_nested.py
|
|
@ -117,8 +117,8 @@ async def view( |
|
|
# test that all "parent" attributes are properly set |
|
|
# test that all "parent" attributes are properly set |
|
|
def test_parent(view: ViewFixture): |
|
|
def test_parent(view: ViewFixture): |
|
|
assert view.container.parent is None |
|
|
assert view.container.parent is None |
|
|
assert view.row.parent == view.container |
|
|
assert type(view.row.parent) is type(view.container) |
|
|
assert view.item.parent == view.row |
|
|
assert type(view.item.parent) is type(view.row) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# test that all "view" attributes are properly set |
|
|
# test that all "view" attributes are properly set |
|
|
|