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

Add tests #64

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Add tests #64

wants to merge 14 commits into from

Conversation

mahendrapaipuri
Copy link
Contributor

This PR adds basic tests for the package. Currently, we implemented the tests for module package and we are also testing handlers.

All fixtures are defined in conftest.py and we are reusing them in tests for module and handlers.

@cmd-ntrf Can I add a workflow to test these tests in CI? I did not add it now as I am not sure if you are using shared runners (with quota) or your on-premise runners.

- Typescript contents are moved to root dir to match with extension dir
layout
- Renamed lmod to module
- Added handlers to get found module system name and logo
- Renamed most of the instances of lmod to module except for pkg name
- Added Lmod and Tmod logos to static dir
- Added editable build command to pyproject.toml
- Added npm-run-all to package.json
- Changed extension named to @jupyterlab/jupyterlab-lmod to match
standard convention
- Included yarn.lock with repo
- Added install.json file
Set correct EMPTY_LIST_STR for each module system
Fix print_output_decorator by making it async
Improve module list logic by properly catching hidden modules
Remove header in savelist if present
@cmd-ntrf cmd-ntrf self-requested a review April 12, 2023 14:01
@cmd-ntrf cmd-ntrf self-assigned this Apr 12, 2023
@cmd-ntrf
Copy link
Owner

@cmd-ntrf Can I add a workflow to test these tests in CI? I did not add it now as I am not sure if you are using shared runners (with quota) or your on-premise runners.

Please do. I am using shared-runners.

This is very rudimentary. Most probably there will be failed tests.
@mahendrapaipuri
Copy link
Contributor Author

Added a preliminary test workflow. I adopted the one from jupyter-server-proxy project.

@cmd-ntrf
Copy link
Owner

@mahendrapaipuri better late than never they say. Could you rebase this on main?

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

Successfully merging this pull request may close these issues.

2 participants