def test_build(self): for python_version in [None , PythonImageVersions().supported_versions[0]]: build_out = self.__test_build(python_version=python_version) self.assertTrue('RUN pip install -r requirements.txt' in build_out, 'Incorrect pip command') self.__test_image()
def test_build_python_server(self): versions = list(PythonImageVersions().supported_versions) for version in versions: build_out = self.__test_build_python_server(python_version=version) self.assertTrue('RUN pip install -r requirements.txt' in build_out, 'Incorrect pip command')