summaryrefslogtreecommitdiff
path: root/reference.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-06-03 08:26:54 +0300
committerLars Wirzenius <liw@liw.fi>2023-06-15 07:20:46 +0300
commit972ee09bb7d46d2688ef846ca912ac06a72674b4 (patch)
tree8f2369520f6dbabd6271c9798b4423817bca7222 /reference.py
parent09d99341aefcfca0a923445ba6ed0b298c6b1788 (diff)
downloadsubplot-972ee09bb7d46d2688ef846ca912ac06a72674b4.tar.gz
tests: re-enable reference subplot, test using Subplot 0.8.0
Rename the disabled reference.md to its proper name, and update it to match current Subplot, with YAML metadata in a separate file. Add "-t python" to subplot invocations, because subplot.subplot has both python and rust. The Python code doesn't have versioned dependencies on Subplot crates, which makes it easier to test here. Sponsored-by: author
Diffstat (limited to 'reference.py')
-rw-r--r--reference.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/reference.py b/reference.py
index 69ad466..fa4b274 100644
--- a/reference.py
+++ b/reference.py
@@ -13,5 +13,9 @@ def docgen(ctx, filename=None, output=None, dirname=None):
runcmd_run = globals()["runcmd_run"]
runcmd_exit_code_is_zero = globals()["runcmd_exit_code_is_zero"]
- runcmd_run(ctx, ["subplot", "docgen", filename, "--output", output], cwd=dirname)
+ runcmd_run(
+ ctx,
+ ["subplot", "docgen", filename, "--output", output, "-t", "python"],
+ cwd=dirname,
+ )
runcmd_exit_code_is_zero(ctx)