writes to test/myclirc, leaving it "modified" in the worktree, according to git status, after the test suite is run.
We can simply check out a fresh copy of the file after running the tests. If the git executable is not present, or the code is not in a checked-out repository, the command will silently fail.
Checklist
~[ ] I've added this contribution to the changelog.md.~ (no need, internal-facing)
[x] I've added my name to the AUTHORS file (or it's already there).
Description
This test https://github.com/dbcli/mycli/blob/4517f49efdcc167a672bce9fdb922bb7224ce5f5/test/test_special_iocommands.py#L83-L90
writes to
test/myclirc
, leaving it "modified" in the worktree, according togit status
, after the test suite is run.We can simply check out a fresh copy of the file after running the tests. If the
git
executable is not present, or the code is not in a checked-out repository, the command will silently fail.Checklist
changelog.md
.~ (no need, internal-facing)AUTHORS
file (or it's already there).