I have implemented a python web client that I would like to test.
The server is hosted in the npm registry. The server starts locally with node before running my functional tests.
How to properly install the npm module from my setup.py script?
Here is my current solution inspired by this post:
class CustomInstallCommand(install): def run(self): arguments = [ 'npm', 'install', '--prefix', 'test/functional', 'promisify' ] subprocess.call(arguments, shell=True) install.run(self) setup( cmdclass={'install': CustomInstallCommand},
source share