TabsManager.py Added unit tests + documentation

This commit is contained in:
2025-12-07 15:42:48 +01:00
parent 05067515d6
commit fde2e85c92
11 changed files with 4375 additions and 317 deletions

View File

@@ -74,8 +74,8 @@ def test_i_can_manage_notstr_success_path(ft, to_search, expected):
(NotStr("hello my friend"), TestObject(NotStr, s="hello")),
])
def test_test_i_can_manage_notstr_failure_path(ft, to_search):
with pytest.raises(AssertionError):
find(ft, to_search)
res = find(ft, to_search)
assert res == []
@pytest.mark.parametrize('ft, expected', [
@@ -85,5 +85,4 @@ def test_test_i_can_manage_notstr_failure_path(ft, to_search):
(Div(id="id2"), Div(id="id1")),
])
def test_i_cannot_find(ft, expected):
with pytest.raises(AssertionError):
find(expected, ft)
assert find(expected, ft) == []