Closed LewisGaul closed 9 months ago
Having solved these concerns I'm now much happier with the setup of explicit parameterisation:
docker_client
or podman_client
directly for tests that don't need parameterisingTestSessionClient
mechanism from conftest.py
pytest.mark.xfail
in parameterisationscould you split it into multiple pull requests if that's not too much to ask? I would be able to review much faster and also, it makes it easier to spot bugs/design errors.
While I agree with the sentiment, it's a trade-off between ease of development and ease of reviewing... I've tried to mitigate the size of the review by listing the changes in the description. The real development cost isn't putting it in different PRs, it's having multiple branches based on each other and keeping track of those dependencies, including my work on further parameterisation (I currently have a podman-tests3
branch based on this podman-tests2
branch...).
I can go ahead with splitting things up this time as I'm happy to have thorough reviews, but in general this is slowing things down and adding mental overhead for me and that might be something to consider.
Also part of the reason for grouping stuff is it makes it clearer how it all fits together, e.g. you have the whole test_image.py
file to see how the parameterisation works.
Well I understand your position, I'm in the same position when I write a lot of code myself. I'm just not confortable reviewing a 400 LOC pull request. The quality of the code review will drop. If you don't want to split it (that's ok), I can split it myself and merge those pull requests. To be clear, it's a matter of making the review faster, but also a matter of ensuring there are no bugs in the modified code.
Closing as not intended to be merged, can still be used for reference/comments.
See https://github.com/gabrieldemarmiesse/python-on-whales/pull/527 and the PRs dependent on that one (all mentioned and therefore linked).
podman info
output--no-runtime-skip
CLI argctr_client
parameterisation:pytest_collection_modifyitems()
hook)ctr_client
(no need to import anything fromtest_utils
)TestSessionClient
class)docker_client
andpodman_client
fixtures directly for testcases that do not need parameterisingtest_image.py
with podman--runxfail
is useful for bulk fixing xfail tests)More test parameterisation to come (in separate PR)...