ojarva / python-sshpubkeys

OpenSSH public key parser for Python
BSD 3-Clause "New" or "Revised" License
101 stars 42 forks source link

3.3.1: pytest cannot find any units #94

Open kloczek opened 2 years ago

kloczek commented 2 years ago

I'm trying to package your module as an rpm package. So I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.

I see that files in tests/ are using unittest whic pytest can handle if test suite is correctly written. Nevertheless IMPO it woiuld be better to migrate to pytest because unittest is not maintained (this is why +95% of all modules test suite are using already pytest).

Here is pytest output:

```console + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-sshpubkeys-3.3.1-14.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-sshpubkeys-3.3.1-14.fc35.x86_64/usr/lib/python3.8/site-packages + /usr/bin/pytest -ra ==================================================================== test session starts ===================================================================== platform linux -- Python 3.8.13, pytest-7.1.2, pluggy-1.0.0 rootdir: /home/tkloczko/rpmbuild/BUILD/python-sshpubkeys-3.3.1 plugins: subtests-0.7.0, timeout-2.1.0 collected 0 items =================================================================== no tests ran in 0.07s ==================================================================== ```