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

fix: TestPackageListParser/test_valid_requirements is broken #3644

Open
terriko opened this issue Dec 19, 2023 · 6 comments
Open

fix: TestPackageListParser/test_valid_requirements is broken #3644

terriko opened this issue Dec 19, 2023 · 6 comments
Labels
bug Something isn't working tests

Comments

@terriko
Copy link
Contributor

terriko commented Dec 19, 2023

Description

The test "test_valid_requirements" in test/test_package_list_parser.py is broken and needs to be updated or replaced with a correct test that covers the same code.

This may have been broken for some time, as an unrelated issue caused the test to not be run at all (see #3631). It's possible that the issue is not in the test code but elsewhere. It's possible that it's just an ordering thing in the array of test data -- you may want to consider replacing the current assert with an assert for each product to help you narrow down the problem.

Note that this is currently set to run only on ubuntu systems. although it's part of something that is ubuntu-specific, this particular piece looks like it could be debugged on any system as long as you remove the skipif section above it.

To reproduce

Run just this test:
pytest -k test_valid_requirements

(If it is showing up as skipped, you will need to enable it in the code yourself.)

Expected case: the test should pass
Actual case: the test fails due to differences in the expected and actual output arrays of product info.

@terriko terriko added bug Something isn't working tests labels Dec 19, 2023
@ayushthe1
Copy link
Contributor

hey @terriko ,can I take up on this one.

@terriko
Copy link
Contributor Author

terriko commented Dec 20, 2023

@ayushthe1 sure, I'll assign you. What's going wrong wasn't immediately obvious to me at a quick glance, so it may be a bit confusing to fix. Good luck!

@mastersans
Copy link
Member

Hey @ayushthe1 are you working on this if not I'll like to continue your work.

@mastersans
Copy link
Member

ok so its been 5 days i am working on this.!

@ayushthe1
Copy link
Contributor

Oh sorry @mastersans , this issue fell off my radar.
@terriko Could you please take a look at the PR #3673 and suggest if any further changes are required.

@terriko
Copy link
Contributor Author

terriko commented Dec 26, 2024

Not sure if the test is still broken, but it is still disabled if anyone wants to look at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants