The unit tests are very bare... I was able to patch subprocess.check_call, however when I call it with assert_called_once_with, it errors out stating that it was never called... even though the side effect shouldn't happen if that were true.
msg = "Expected 'check_call' to be called once. Called 0 times."
Issue #, if available: https://github.com/aws/sagemaker-inference-toolkit/issues/9 https://github.com/aws/sagemaker-python-sdk/issues/957 https://github.com/aws/sagemaker-python-sdk/issues/664
Description of changes: Added code to support installing requirements.txt.
This makes the assumption that the requirements.txt will be in the /opt/ml/model/code/ as defined in the environments.py and in the tensorflow-serving-container.
The unit tests are very bare... I was able to patch subprocess.check_call, however when I call it with assert_called_once_with, it errors out stating that it was never called... even though the side effect shouldn't happen if that were true.
Testing tox tests
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.