-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Correct tests handling paths to files where paths to directories are expected #8947
Correct tests handling paths to files where paths to directories are expected #8947
Conversation
Good catch. Did you notice that there is a third test that failed in https://github.com/python-poetry/poetry-core/actions/runs/7782092252/job/21217798889?pr=695? It looks like |
Ah! Thanks for the catch. I went to bed before I could see the results. |
aeb2f03
to
192d497
Compare
I thought it wise to add that missing fixture, could you check that I've understood the test's intent? In particular: I used the local_config fixture as a starting point, so I might have missed something that should be removed from that. |
@radoering I'm wondering if that test actually needs to exist. The empty repository key that it checks is enforced by the schema validation in Factory. I've updated it to check that schema validation is performed, but this may be redundant or the behaviour may be wrong (as the previously tested behaviour may be desired). Or perhaps the 'empty_repository_key' actually meant an unset repository key and I've gone in the wrong direction. Thanks in advance |
The test was introduced in #7910 so the goal was to increase test coverage. If I remove the test, the line coverage for |
dd7f38a
to
7ed5424
Compare
7ed5424
to
4926932
Compare
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I think these tests are testing slightly incorrect behaviour. Fixing them should unblock another change I'd like to suggest but we should also ensure we aren't testing behaviours that aren't intended.