Closed kloczek closed 3 years ago
OK I see that here is custom testing procedure .. nevertheless I think that it would be good to move to pytest only because pytest has a lot of extensions which allow test and scan code using vast number of pytest extension.
Hi kloczek, please see the following for how to test. I don't plan to move us to pytest.
That is fine however still it would be good fix stem code to allow use pytest because it has many extensions which allows not only test the code over some test units but as well scan and sanitize the code. From that point of view what offers pytest is way beyond what is now implemented in your test suite.
it has many extensions which allows not only test the code over some test units but as well scan and sanitize the code
What specific, concrete benefit does pytest provide that we do not have right now?
Just look on current list https://docs.pytest.org/en/latest/reference/plugin_list.html
Are you sure that all that (or even half) is already supported by what does run_tests.py
?
and many, many more ..
Just normal build, install and test cycle used on building package from non-root account:
================================================================================== ERRORS ================================================================================== ____ ERROR collecting docs/_static/example/load_test.py ____ /usr/lib/python3.8/site-packages/_pytest/python.py:578: in _importtestmodule mod = import_path(self.fspath, mode=importmode) /usr/lib/python3.8/site-packages/_pytest/pathlib.py:524: in import_path importlib.import_module(module_name) /usr/lib64/python3.8/importlib/init.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level)