Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = [
license = { text = "GPL-3.0 License" }
requires-python = "<4.0.0,>=3.8.1"
dependencies = [
"textual==2.1.2",
"textual==3.0.1",
]
name = "recoverpy"
version = "2.2.0"
Expand Down
20 changes: 10 additions & 10 deletions tests/integration/test_full_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ async def test_full_workflow(session_mocker, tmp_path: Path):
assert pilot.app.screen._start_search_button.disabled is True

# Test partition list default state
filter_checkbox = pilot.app.query("Checkbox").only_one()
filter_checkbox = pilot.app.screen.query("Checkbox").only_one()
assert filter_checkbox is not None
assert filter_checkbox.value is True

items = list(pilot.app.query("ListItem").results())
items = list(pilot.app.screen.query("ListItem").results())
assert len(items) == VISIBLE_PARTITION_COUNT

# Test partition list unfiltered
Expand All @@ -67,10 +67,10 @@ async def test_full_workflow(session_mocker, tmp_path: Path):

assert filter_checkbox.value is False
await assert_with_timeout(
lambda: len(list(pilot.app.query("ListItem").results()))
lambda: len(list(pilot.app.screen.query("ListItem").results()))
== UNFILTERED_PARTITION_COUNT,
UNFILTERED_PARTITION_COUNT,
len(list(pilot.app.query("ListItem").results())),
len(list(pilot.app.screen.query("ListItem").results())),
)

# Test partition list filtered
Expand All @@ -79,10 +79,10 @@ async def test_full_workflow(session_mocker, tmp_path: Path):

assert filter_checkbox.value is True
await assert_with_timeout(
lambda: len(list(pilot.app.query("ListItem").results()))
lambda: len(list(pilot.app.screen.query("ListItem").results()))
== VISIBLE_PARTITION_COUNT,
VISIBLE_PARTITION_COUNT,
len(list(pilot.app.query("ListItem").results())),
len(list(pilot.app.screen.query("ListItem").results())),
)

# Test input search parameters
Expand Down Expand Up @@ -133,14 +133,14 @@ async def test_full_workflow(session_mocker, tmp_path: Path):
len(pilot.app.screen._grep_result_list.grep_results),
)
await assert_with_timeout(
lambda: len(list(pilot.app.query("ListItem").results()))
lambda: len(list(pilot.app.screen.query("ListItem").results()))
== GREP_RESULT_COUNT,
GREP_RESULT_COUNT,
len(list(pilot.app.query("ListItem").results())),
len(list(pilot.app.screen.query("ListItem").results())),
)

# Test select search results
list_items = list(pilot.app.query("ListItem").results())
list_items = list(pilot.app.screen.query("ListItem").results())

for item in list_items:
await pilot.click(f"#{item.id}")
Expand Down Expand Up @@ -223,7 +223,7 @@ async def test_full_workflow(session_mocker, tmp_path: Path):
add_expected_save_result(pilot)

# Test select previous result
previous_button = pilot.app.query("#previous-button").only_one()
previous_button = pilot.app.screen.query("#previous-button").only_one()
current_inode = pilot.app.screen._inode
await pilot.click("#previous-button")
await pilot.pause()
Expand Down
11 changes: 6 additions & 5 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading