-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a way to isolate tests within one document #47
Comments
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. |
Feels like Sybil should grow something :-) Rather than hacking the above, why not add your own parser that does this? |
@cjw296 with no promises - added to my TODO list! |
(and, thank you for the very neat project!) |
@adamtheturtle - what Python version are you using? |
@cjw296 Python 3.11.2 |
@adamtheturtle - and what version of pytest? |
@cjw296 pytest 7.2.2 |
Implemented in 8012155 |
Released in https://pypi.org/project/sybil/5.0.0/ |
I am trying to switch from
doctest
tocode-block
with Sybil.One issue I'm hitting is that I would like to have multiple separated tests within one document.
manuel
provides.. reset-globs
.Is there a workaround to allow similar functionality with Sybil?
The text was updated successfully, but these errors were encountered: