-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Add end-to-end tests to prepare for PackageFinder location sorting rewrite #5849
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 end-to-end tests to prepare for PackageFinder location sorting rewrite #5849
Conversation
a878223
to
27b519c
Compare
Hello! I am an automated bot and I have noticed that this pull request is not currently able to be merged. If you are able to either merge the |
27b519c
to
0c635e7
Compare
I am satisfied with this now, and it’s probably best to merge this first and work on the rewrite in new PRs. |
Hello! I am an automated bot and I have noticed that this pull request is not currently able to be merged. If you are able to either merge the |
This ensures we cover all path-sorting branches, so everything designed to work is guarenteed to work. Old unit tests directly using _sort_locations() are replaced by E2E tests so we can pick apart that function.
0c635e7
to
b997122
Compare
I just saw this again. Why are some of the tests being removed when some are added? |
I think the idea is to avoid testing against Honestly I am not very sure after so long (can’t believe it’s six months ago), but that seems to explain what I did… |
If you were removing the Re: the tests, it looks like the tests are checking that locations are being put into the right buckets ("files" or "urls"). (I think "sort" might not be the best name for this method as it's not sorting into an ordering but rather sorting in the sense of "putting into the right bucket.") |
I guess the PR is not meaningful now since I’m not working on |
Aren’t the new tests still good though, which was the main reason for the PR? |
Yes they are, but I can always add them when they are meaningful 😄 Right now |
Okay, I was under the impression that the new tests added code coverage since they're end-to-end tests whereas the others are unit tests. |
Ultimate goal is #5846. Currently this only add tests to ensure the current behaviour is throughally tested (according to coverage.py).