Skip to content

Commit bdb70b9

Browse files
authored
Merge pull request #579 from PabloLec/dependabot/pip/textual-3.0.1
Bump textual from 2.1.2 to 3.0.1
2 parents 9e0b104 + 0174977 commit bdb70b9

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = [
55
license = { text = "GPL-3.0 License" }
66
requires-python = "<4.0.0,>=3.8.1"
77
dependencies = [
8-
"textual==2.1.2",
8+
"textual==3.0.1",
99
]
1010
name = "recoverpy"
1111
version = "2.2.0"

tests/integration/test_full_workflow.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ async def test_full_workflow(session_mocker, tmp_path: Path):
5454
assert pilot.app.screen._start_search_button.disabled is True
5555

5656
# Test partition list default state
57-
filter_checkbox = pilot.app.query("Checkbox").only_one()
57+
filter_checkbox = pilot.app.screen.query("Checkbox").only_one()
5858
assert filter_checkbox is not None
5959
assert filter_checkbox.value is True
6060

61-
items = list(pilot.app.query("ListItem").results())
61+
items = list(pilot.app.screen.query("ListItem").results())
6262
assert len(items) == VISIBLE_PARTITION_COUNT
6363

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

6868
assert filter_checkbox.value is False
6969
await assert_with_timeout(
70-
lambda: len(list(pilot.app.query("ListItem").results()))
70+
lambda: len(list(pilot.app.screen.query("ListItem").results()))
7171
== UNFILTERED_PARTITION_COUNT,
7272
UNFILTERED_PARTITION_COUNT,
73-
len(list(pilot.app.query("ListItem").results())),
73+
len(list(pilot.app.screen.query("ListItem").results())),
7474
)
7575

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

8080
assert filter_checkbox.value is True
8181
await assert_with_timeout(
82-
lambda: len(list(pilot.app.query("ListItem").results()))
82+
lambda: len(list(pilot.app.screen.query("ListItem").results()))
8383
== VISIBLE_PARTITION_COUNT,
8484
VISIBLE_PARTITION_COUNT,
85-
len(list(pilot.app.query("ListItem").results())),
85+
len(list(pilot.app.screen.query("ListItem").results())),
8686
)
8787

8888
# Test input search parameters
@@ -133,14 +133,14 @@ async def test_full_workflow(session_mocker, tmp_path: Path):
133133
len(pilot.app.screen._grep_result_list.grep_results),
134134
)
135135
await assert_with_timeout(
136-
lambda: len(list(pilot.app.query("ListItem").results()))
136+
lambda: len(list(pilot.app.screen.query("ListItem").results()))
137137
== GREP_RESULT_COUNT,
138138
GREP_RESULT_COUNT,
139-
len(list(pilot.app.query("ListItem").results())),
139+
len(list(pilot.app.screen.query("ListItem").results())),
140140
)
141141

142142
# Test select search results
143-
list_items = list(pilot.app.query("ListItem").results())
143+
list_items = list(pilot.app.screen.query("ListItem").results())
144144

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

225225
# Test select previous result
226-
previous_button = pilot.app.query("#previous-button").only_one()
226+
previous_button = pilot.app.screen.query("#previous-button").only_one()
227227
current_inode = pilot.app.screen._inode
228228
await pilot.click("#previous-button")
229229
await pilot.pause()

uv.lock

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)