Closed landauermax closed 3 years ago
The logging is only needed to prevent everything to be printed in terminal. It has no actual use. What user should be used? The aminer user is created automatically with the proposed way of installing the aminer (with the install script)
Also to run the unittests other requirements like different locales have to be installed.
How should the user be determined in the unittests?
I would think of this solution, but maybe there is some disadvantage to it that I am not aware of? Like different behavior for normal and root users, etc. - needs to be verified.
>>> import os
>>> os.getuid()
1000
>>> os.getgid()
1000
That should be possible. I will implement it that way.
I tried to run the unit test locally and got the following error:
I uncommented the line that caused the error and then the tests work. I am aware that logging is probably needed to evaluate the tests in the ci pipeline, however, it should also be possible to run the unit tests locally without the need to have a user named aminer.