Skip to content

Commit a40eace

Browse files
committed
Fix Tooltip of filewatcher button
1 parent 605ef31 commit a40eace

5 files changed

Lines changed: 14 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.4.1
2+
- Fix Tooltip for Filewatcher-Button, to show correct path if `self.test_path` is `None`
3+
i.e. `ayu` is run without any arguments
4+
15
# 0.4.0
26
- Add File Watcher to rerun tests in changed file automatically
37

notes.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ Musthaves before release
1515

1616
# optionals
1717
- align result Icons better on test tree
18-
- using something like watchfiles to detect filechanges and
19-
update the test_tree accordingly (or just stick with a manual refresh)
2018

2119
# fixes
2220
- fix display of skip reason after reset

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ayu"
3-
version = "0.4.0"
3+
version = "0.4.1"
44
description = "An interactive TUI for pytest"
55
readme = "README.md"
66
authors = [

src/ayu/widgets/helper_widgets.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,16 @@ class ButtonPanel(Vertical):
7171

7272
def on_mount(self):
7373
# Add Tooltips
74+
path_to_watch = self.app.test_path or "tests"
7475
self.query_one(
7576
"#button_watcher", Button
76-
).tooltip = f"If [$success]On[/], tracks file changes under [$warning]{self.app.test_path}[/] and reruns tests in changed files automatically"
77+
).tooltip = f"If [$success]On[/], tracks file changes under 📁[$warning]{path_to_watch}[/] and reruns tests in changed files automatically"
78+
self.query_one(
79+
"#button_plugins", Button
80+
).tooltip = "Explore the current plugin options [$warning](changes have no influence on the test execution yet)[/]"
81+
self.query_one(
82+
"#button_coverage", Button
83+
).tooltip = "Show the current test coverage"
7784

7885
def compose(self):
7986
yield Button(label="Plugins", id="button_plugins", variant="warning")

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)