Hi. I want to run unit-tests on the development machine. So I just execute pytest
in the DP root folder. One issue I found is that DP tries to run pip with the following command:
result = subprocess.check_call([sys.executable, '-m', 'pip', 'install',
*[re.sub(r'\s', '', package) for package in packages]],
env=os.environ.copy())
Which is OK for root, but since I want to run tests as user, I also need to pass ‘–user’ flag. As a workaround, I just added it to the list of arguments.
But is there a better way of making pip work?
Regards