From 435cedcf09488da572b9c842e3d463ac88bb9a3e Mon Sep 17 00:00:00 2001 From: Jon Mease Date: Mon, 28 Aug 2023 15:00:49 -0400 Subject: [PATCH 1/2] Run doctests in altair module with `hatch run test` --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index aebf6b174..652ecbe16 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -106,7 +106,7 @@ test = [ "black --diff --color --check .", "ruff check .", "mypy altair tests", - "python -m pytest --pyargs --doctest-modules tests", + "python -m pytest --pyargs --doctest-modules tests altair", ] test-coverage = "python -m pytest --pyargs --doctest-modules --cov=altair --cov-report term altair" test-coverage-html = "python -m pytest --pyargs --doctest-modules --cov=altair --cov-report html altair" From 83cbb3d78a410b98a504765e265caa4662e78c62 Mon Sep 17 00:00:00 2001 From: Jon Mease Date: Mon, 28 Aug 2023 15:00:58 -0400 Subject: [PATCH 2/2] Fix doctest --- altair/utils/_vegafusion_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/altair/utils/_vegafusion_data.py b/altair/utils/_vegafusion_data.py index 0f19c1d38..83bb8d066 100644 --- a/altair/utils/_vegafusion_data.py +++ b/altair/utils/_vegafusion_data.py @@ -72,7 +72,7 @@ def get_inline_table_names(vega_spec: dict) -> Set[str]: ... }, ... { ... "name": "bar", - ... "url": "table://inline_dataset_123" + ... "url": "vegafusion+dataset://inline_dataset_123" ... } ... ] ... }