Skip to content
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

Conditional output comparison #146

Open
eric-wieser opened this issue May 21, 2020 · 1 comment
Open

Conditional output comparison #146

eric-wieser opened this issue May 21, 2020 · 1 comment

Comments

@eric-wieser
Copy link
Contributor

eric-wieser commented May 21, 2020

It would be great if there were some way to make output comparison of a cell conditional, like how in a regular test one can write:

@pytest.mark.skipif(sys.version_info < (3, 5))

or

@pytest.mark.xfail(distutils.version.LooseVersion(sympy.__version__) < '1.5')

I'd be happy to help put together a PR to do this, but I don't really know where to start.

@epassaro
Copy link

epassaro commented Dec 18, 2020

Is possible to make notebooks aware of other pytest flags? For example:

pytest my_package --reference-data=/path/to/reference/data

where --reference-data points to a folder with required files to run the tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants