click.get_pager_file: add tests (#1572 followup)#3405
Conversation
click.get_pager_file: add tests (#1572 followup)
kdeldycke
left a comment
There was a problem hiding this comment.
There are workaround and late changes in #1572 about windows so yes, it's better to try to test on that platform too. If you don't have access to a Windows machine, just remove your skip decorator and use the feedback from GitHub workflow runs. Slow, but doable.
AndreasBackx
left a comment
There was a problem hiding this comment.
Will still update the change entries, but likely not today.
|
Ah. You're right. Windows runners are failing hard on I also spotted some opportunities to extend the tests with |
|
@AndreasBackx I added a couple of tests around the What do you think of these changes? |
|
I don't want to release 8.4.0 until these go in. @kdeldycke Feel free to keep adding small fixes and I will merge until this is ready. However, when this is ready for merge, I will accept it and just cut the release, but I expect 8.4.1 to come out shortly so I don't expect the prs to sit for long. |
Yes, you are right to push for stale PRs and prioritize coverage now. We need a bit of effort to arrive at a final 8.4.0. |
f2cbc85 to
b761eda
Compare
I made these changes myself on top of Andreas changes.
Just rebased on top of |
This is a follow-up to #1572 which adds tests to validate the behaviour of
click.get_pager_file. There are still some open-standing questions / todos depending on requirements:catcould we use to create simple tests? We might be able to installcaton our CI, though I haven't looked into it yet.cat-based integration tests. We basically want to make sure that it works how we expect with a real pager, but usingcatseems like the easiest way to validate this as I don't know how we'd test interactive CLIs. 🤔