ipytest
ipytest copied to clipboard
Pytest in IPython notebooks.
https://github.com/treebeardtech/nbmake
The following code fails with a misleading error message: ```python %%run_pytest[clean] import pytest @pytest.mark.parameterize('test_input,expected', [("3+5", 8)]) def test_eval(test_input, expected): assert eval(test_input) == expected ``` The error message is: ``` E...
Currently the release candidate for `pytest==8.0.0` is available. - [ ] Run the test suite with it - [ ] Update the requirements.txt file once released - [ ] Release...
Here is my test condition that I set up in PyCharm (IntelliJ): [Cell 1] ``` __file__ = "test_ipytest.ipynb" import ipytest ipytest.config(raise_on_error=True, coverage=False) ``` [Cell 2] ``` %%ipytest import pytest def...
Hey. I'm using Jupyter Notebook on VSCode, in order to test some transformations on Databricks (using db-connect). No idea why, but after a lot of time, i'm not able to...
Stopping/terminating a cell in the middle can cause the file not to be deleted. In this case, we should delete it instead of throwing an error https://github.com/chmp/ipytest/blame/09b7ff6a1990b88de52da565b86fac7ff63e2f37/ipytest/_impl.py#L425-L426