mk-fg / python-pulse-control

Python high-level interface and ctypes-based bindings for PulseAudio (libpulse)
https://pypi.org/project/pulsectl/
MIT License
170 stars 36 forks source link

tests: use a more standard file name to support autodiscovery #55

Closed sbraz closed 3 years ago

sbraz commented 3 years ago

Another change, this time to make it easier to run the tests :smiley: unittest's discover module and pytest expect test files to start with 'test'.

https://docs.python.org/3/library/unittest.html#unittest.TestLoader.discover https://docs.pytest.org/en/6.2.x/goodpractices.html#conventions-for-python-test-discovery

sbraz commented 3 years ago

This also means that we could also run python -m unittest discover instead of python -m unittest pulsectl.tests.all and we could get rid of all.py.

mk-fg commented 3 years ago

Good idea, thanks. Will check and update the README.

sbraz commented 3 years ago

I'll do that myself, since I force-pushed too late and forgot to update all.py :/