Skip to content

Commit 682ab9d

Browse files
committed
regression test
1 parent 8beebfe commit 682ab9d

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: "Quarto Parameters"
3+
format: html
4+
engine: jupyter
5+
keep-md: true
6+
keep-ipynb: true
7+
---
8+
9+
```{python}
10+
#| tags: [parameters]
11+
#| include: false
12+
username = None
13+
password = None
14+
```
15+
16+
```{python}
17+
print(f"Hello, {username}!")
18+
```
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* issue-11990.test.ts
3+
*
4+
* https://github.com/quarto-dev/quarto-cli/issues/11990
5+
*
6+
* Copyright (C) 2025 Posit Software, PBC
7+
*/
8+
9+
import { join } from "../../../src/deno_ral/path.ts";
10+
import { docs, outputForInput } from "../../utils.ts";
11+
import { noErrorsOrWarnings, ensureFileRegexMatches } from "../../verify.ts";
12+
import { testRender } from "../render/render.ts";
13+
14+
const format = "html";
15+
const input = docs(join("jupyter", "parameters", "issue-11990.qmd"));
16+
const output = outputForInput(input, format);
17+
18+
testRender(input, format, false, [
19+
noErrorsOrWarnings,
20+
ensureFileRegexMatches(output.outputPath, [], [
21+
"Injected Parameters"
22+
]),
23+
], {}, ["--no-execute-daemon", "--execute-param", "username:John"]);

0 commit comments

Comments
 (0)