Repository navigation
Add new tests - #390
Add new tests#390
Conversation
MFA-X-AI
left a comment
There was a problem hiding this comment.
Thanks for the PR!
I'll review the codebase in a bit, but before I forget - typically in the PR message we would want to keep it more verbose on what it does and why, just so future people who are looking at the code base can understand.
As for the test sections, it should be instructions on how to test your PR.
MFA-X-AI
left a comment
There was a problem hiding this comment.
Thanks for the PR! You're really helping me save time by polishing these tests.
I've added my comments on what to update, but overall it looks good and I can confirm that the current tests run until the end.
One additional thing I'd like to request is a test to ensure that xircuits install github_url works properly. Lemme know how that works out.
| assert output_file.exists(), f"Expected output file '{output_file}' not found." | ||
|
|
||
|
|
||
| def test_interrupted_initialization(): |
There was a problem hiding this comment.
I'm not sure which test this refers to.
There was a problem hiding this comment.
It is related to test number 32 in the spreadsheet.
|
LGTM! |
Description
This PR introduces a new set of CLI test cases under
tests/tests.pyto improve the test coverage of core functionalities.Additionally, a new GitHub Actions workflow file
run-cli-tests.ymlwas added under.github/workflows/to automate running these tests.The goal is to ensure CLI components behave as expected and are tested on every push, pull request, or manual dispatch across multiple Python versions.
This PR also fixes an issue where installed libraries were incorrectly marked as incomplete (
[*]) when listed usingxircuits list, despite being properly installed.The issue occurred because the
check_requirements_installedfunction was comparing the full requirement string (e.g.,"sendgrid==6.11.0") with the list of installed package names obtained frompip freeze(e.g.,"sendgrid"), which does not include version information.To fix this:
==) from the requirements list.[ * ]marker from appearing.Pull Request Type
Type of Change
Test
pip install -e .Tested On