intelmq icon indicating copy to clipboard operation
intelmq copied to clipboard

documentation bug/ unittest mis-match: unittest assume global installation

Open aaronkaplan opened this issue 2 years ago • 2 comments

Going through and testing the documentation, I noticed that the unittest discover instructions assume that we have a global installation.

If we follow the Developer guide, we might end up with a .venv installation. (following: https://intelmq.readthedocs.io/en/develop/dev/guide.html)

Result:

(.venv) aaron@bee:/opt/dev_intelmq$ sudo -u intelmq python3 -m unittest discover
sudo: unknown user intelmq

aaronkaplan avatar Nov 28 '23 10:11 aaronkaplan

The docs already say, right above the code that you pasted and executed:

For virtual environment installation, please activate it and omit the sudo -u from examples below:

sebix avatar Aug 13 '24 19:08 sebix

see also #2349

sebix avatar Aug 14 '25 20:08 sebix