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

Minor enhancements to the fixtures #171

Merged

Conversation

echarles
Copy link
Member

While reading the tests, I found a few minor enhancements like removing the param from base_url fixture and adding doc to app fixture.\

I may push in the coming day more minore udpates.

My understanding is that only the fixtures defined in pytest_plugin.py are usable in other projects (like nbclassic). Then, how do we decide which fixture to expose? e.g. I can see a use of ws_fetch defined in test_api.py in kernel related projects but today this is not possible.

@Zsailer
Copy link
Member

Zsailer commented Jan 14, 2020

I can see a use of ws_fetch defined in test_api.py in kernel related projects but today this is not possible.

I totally agree. In fact, I think #160 moves this fixture into the base level conftest (before I made the plugin). I think it would be work moving ws_fetch into the plugin.

@echarles
Copy link
Member Author

I totally agree. In fact, I think #160 moves this fixture into the base level conftest (before I made the plugin). I think it would be work moving ws_fetch into the plugin.

True, it moves it here. I will pick that change in this PR and will go through the tests to identify other candidates.

@echarles
Copy link
Member Author

I have moved ws_fetch, kernelspecs and contents_manager fixtures to pytest_plugin for 3rd party consumption. WDYT?

@echarles echarles force-pushed the pytest_fixture_updates branch from 66833fb to 0d67d5d Compare January 15, 2020 07:39
jupyter_server/pytest_plugin.py Show resolved Hide resolved
@Zsailer
Copy link
Member

Zsailer commented Feb 12, 2020

LGTM! Thanks, @echarles!

@Zsailer Zsailer merged commit ae0fde3 into jupyter-server:master Feb 12, 2020
hMED22 pushed a commit to hMED22/jupyter_server that referenced this pull request Jan 23, 2023
…ixture_updates

Minor enhancements to the fixtures
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

Successfully merging this pull request may close these issues.

2 participants