diff --git a/README.md b/README.md index 7be569a..5006e4c 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ $ playwright install Now install the application itself and run it: ```shell -$ flit install --symlink +$ pip install --editable . $ dp-wizard ``` Your browser should open and connect you to the application. diff --git a/dp_wizard/utils/code_generators/__init__.py b/dp_wizard/utils/code_generators/__init__.py index e940049..3f7fd55 100644 --- a/dp_wizard/utils/code_generators/__init__.py +++ b/dp_wizard/utils/code_generators/__init__.py @@ -100,15 +100,6 @@ def _make_queries(self): ) ) - # def _make_queries(self): - # confidence_note = ( - # "The actual value is within the shown range " - # f"with {int(confidence * 100)}% confidence." - # ) - # column_names = self.columns.keys() - # return f"confidence = {confidence} # {confidence_note}\n\n" + "\n".join( - # _make_query(column_name) for column_name in column_names - def _make_query(self, column_name): indentifier = name_to_identifier(column_name) title = f"DP counts for {column_name}" diff --git a/dp_wizard/utils/code_generators/no-tests/_notebook.py b/dp_wizard/utils/code_generators/no-tests/_notebook.py index d3342d2..c44a629 100644 --- a/dp_wizard/utils/code_generators/no-tests/_notebook.py +++ b/dp_wizard/utils/code_generators/no-tests/_notebook.py @@ -32,7 +32,6 @@ # Finally, we run the queries and plot the results. QUERIES_BLOCK -# - # The code below produces a summary report. diff --git a/tests/test_app.py b/tests/test_app.py index 11c1927..f4e4c40 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -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"