You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see above, the fixture value will be injected as a global. For `autouse=True` fixtures, the value is only injected as a global if it's explicitly added using a `fixture:<name>` marker.
122
122
123
-
### Depending on previous snippets
123
+
### Method 3: Depending on previous snippets
124
124
125
125
If you have multiple snippets following each other and want to keep the side
126
126
effects from the previous snippets, you can do so by adding the `continuation`
If you'd like to hide some code blocks from readers (e.g. to hide boilerplate code) you can use the [`markdown-hide-code`](https://pypi.org/project/markdown-hide-code/) extension (assuming you're using the `markdown` library or `mkdocs` to render your documentation).
140
+
141
+
> [!NOTE]
142
+
> Material for Mkdocs is not compatible with the default syntax. But if the extension `pymdownx.superfences` is [configured](https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#superfences) for mkdocs, the brace syntax can be used:
143
+
> ````markdown
144
+
> ```python {continuation}
145
+
> ````
146
+
> You will need to call pytest with the `--markdown-docs-syntax` option:
In .mdx files, you can use MDX comments to provide additional options for code blocks. These comments should be placed immediately before the code block and take the following form:
0 commit comments