Skip to content

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Jul 22, 2024
1 parent 2594a49 commit 9794552
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed

- Fixed issues in Kitty terminal after exiting app https://github.com/Textualize/textual/issues/4779
- Fixed exception when removing Selects

## [0.73.0] - 2024-07-18

Expand Down
25 changes: 25 additions & 0 deletions tests/select/test_remove.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
from textual.app import App, ComposeResult
from textual.widgets import Header, Select

LINES = """I must not fear.
Fear is the mind-killer.
Fear is the little-death that brings total obliteration.
I will face my fear.
I will permit it to pass over me and through me.""".splitlines()


async def test_select_remove():
# Regression test for https://github.com/Textualize/textual/issues/4782
class SelectApp(App):
def compose(self) -> ComposeResult:
self.select = Select((line, line) for line in LINES)
self.select.watch_value = self.on_select
yield Header()
yield self.select

def on_select(self):
self.select.remove()

app = SelectApp()
async with app.run_test() as pilot:
await pilot.press("enter", "down", "down", "enter")

0 comments on commit 9794552

Please sign in to comment.