Skip to content

Remove the use of sh in tests#612

Merged
theskumar merged 1 commit intotheskumar:mainfrom
bbc2:tests-without-sh
Feb 28, 2026
Merged

Remove the use of sh in tests#612
theskumar merged 1 commit intotheskumar:mainfrom
bbc2:tests-without-sh

Conversation

@bbc2
Copy link
Copy Markdown
Collaborator

@bbc2 bbc2 commented Jan 17, 2026

This change has the following benefits:

  • Remove sh as a development dependency.
  • Increase test coverage on Windows.
  • Improve the robustness of some tests against leftover .env files in the repository.
    • This is not perfect yet: If you have a .env file in your repository, it still disrupts some tests (for find_dotenv).
  • Improve the readability of error messages for some tests.
This commit has the following benefits:

- Remove `sh` as a development dependency.
- Increase test coverage on Windows.
- Improve the robustness of some tests against leftover `.env` files in
  the repository.
    - This is not perfect yet: If you have a `.env` file in your
      repository, it still disrupts some tests (for `find_dotenv`).
- Improve the readability of error messages for some tests.
@theskumar theskumar merged commit 43340da into theskumar:main Feb 28, 2026
9 checks passed
theskumar added a commit to bbc2/python-dotenv that referenced this pull request Feb 28, 2026
* main:
  Remove the use of `sh` in tests (theskumar#612)

# Conflicts:
#	tests/test_cli.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants