neithere / argh

An argparse wrapper that doesn't make you say "argh" each time you deal with it.
http://argh.rtfd.org
GNU Lesser General Public License v3.0
369 stars 55 forks source link

fix: assumed prog name in tests #171

Closed neithere closed 1 year ago

neithere commented 1 year ago

The tests are run both locally and in CI via tox. This guarantees reproducible runs. However, they may be ran differently in some other conditions, e.g. when building a rpm/deb/etc. For instance, python -m pytest would result in a different prog name and break tests if it was hard-coded there.

This change both fixes the tests and adds a tox env that would check this case in the future.

Fixes #170