Comments (10)
@cjw296 Python 3.11.2
from sybil.
@cjw296 pytest 7.2.2
from sybil.
Implemented in 8012155
from sybil.
I'm using:
.. invisible-code-block: python
# Reset test
for i in list(globals().keys()):
if not i.startswith('_'):
exec('del ' + i)
but this seems quite hacky.
My ideal is probably something like the group
s in https://www.sphinx-doc.org/en/master/usage/extensions/doctest.html.
from sybil.
Feels like Sybil should grow something :-)
Rather than hacking the above, why not add your own parser that does this?
https://sybil.readthedocs.io/en/latest/use.html#developing-your-own-parsers
from sybil.
@cjw296 with no promises - added to my TODO list!
from sybil.
(and, thank you for the very neat project!)
from sybil.
@adamtheturtle - what Python version are you using?
from sybil.
@adamtheturtle - and what version of pytest?
from sybil.
Released in https://pypi.org/project/sybil/5.0.0/
from sybil.
Related Issues (20)
- `skip: next` now seems to require an empty line after it HOT 2
- Pytest 8 error: FixtureManager.getfixtureclosure() missing 1 required positional argument: 'ignore_args' HOT 14
- Support for `testcode` and `testoutput` in `DocTestDirectiveParser`s HOT 6
- MyST lexer can't handle code fences with additional backticks HOT 5
- sdist is missing some files needed for testing HOT 3
- Regression: Fails handling triple backquotes with lang tag HOT 13
- pytest: `IndexError: list index out of range` when filtering traceback at `tb_entry = tb[1]` HOT 5
- Codeblock Lexer pattern doesn't work if codeblock ends with close comment (end of input to the lexer) HOT 2
- Markdown forces an empty line at the end HOT 9
- tests/helpers.py not in PyPI tarball HOT 1
- Allow test setup/cleanup HOT 6
- Have a badge HOT 1
- Doesn't work with namespace packages HOT 3
- Unhelpful error with missing final linefeed HOT 4
- Warnings on Python 3.12 about ast.Str HOT 2
- Feature request: Add type hints HOT 3
- ModuleNotFoundError if pytest is not installed HOT 5
- Support GitHub Flavored Markdown (GFM)
- Request: Add test which fails if `self.evaluator = None` is removed HOT 2
- Parse and export directive options, too HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sybil.