Skip to content

Commit

Permalink
warn about breakpoint in playwright (#198)
Browse files Browse the repository at this point in the history
* warn about breakpoint in playwright

* split line

* plain pip install

* sorry, meant to start new branch

* skip coverage
  • Loading branch information
mccalluc authored Dec 10, 2024
1 parent 2f29981 commit 6a0bda8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
from shiny.pytest import create_app_fixture


bp = "BREAKPOINT()".lower()
if bp in Path(__file__).read_text():
raise Exception( # pragma: no cover
f"Instead of `{bp}`, use `page.pause()` in playwright tests. "
"See https://playwright.dev/python/docs/debug"
"#run-a-test-from-a-specific-breakpoint"
)


demo_app = create_app_fixture(Path(__file__).parent / "fixtures/demo_app.py")
default_app = create_app_fixture(Path(__file__).parent / "fixtures/default_app.py")
tooltip = "#choose_csv_demo_tooltip_ui svg"
Expand Down

0 comments on commit 6a0bda8

Please sign in to comment.