Skip to content

Conversation

tleyden
Copy link
Contributor

@tleyden tleyden commented Sep 29, 2023

This fixes #145 and #123 by add an optional template_id parameter to createPod()

I re-ran the unit tests locally via pytest, and everything is passing:

pytest
==================================================================================== test session starts =====================================================================================
platform darwin -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0
rootdir: /Users/tleyden/Development/runpod-python
plugins: anyio-3.7.1
collected 129 items                                                                                                                                                                          

tests/test_whatever.py ...                                                                                                                                                             [  2%]
tests/test_api/test_ctl_commands.py .........                                                                                                                                          [  9%]
tests/test_api/test_mutations_pods.py ....                                                                                                                                             [ 12%]
tests/test_cli/test_commands.py ..                                                                                                                                                     [ 13%]
tests/test_cli/test_config.py ....                                                                                                                                                     [ 17%]
tests/test_endpoint/test_asyncio_runner.py ......                                                                                                                                      [ 21%]
tests/test_endpoint/test_runner.py .........                                                                                                                                           [ 28%]
tests/test_serverless/test_worker.py ..............                                                                                                                                    [ 39%]
tests/test_serverless/test_modules/test_fastapi.py ..                                                                                                                                  [ 41%]
tests/test_serverless/test_modules/test_http.py ....                                                                                                                                   [ 44%]
tests/test_serverless/test_modules/test_job.py ...............                                                                                                                         [ 55%]
tests/test_serverless/test_modules/test_local.py .....                                                                                                                                 [ 59%]
tests/test_serverless/test_modules/test_logger.py ........                                                                                                                             [ 65%]
tests/test_serverless/test_modules/test_ping.py ..                                                                                                                                     [ 67%]
tests/test_serverless/test_modules/test_progress.py .                                                                                                                                  [ 68%]
tests/test_serverless/test_modules/test_state.py .......                                                                                                                               [ 73%]
tests/test_serverless/test_modules/test_tips.py ..                                                                                                                                     [ 75%]
tests/test_serverless/test_utils/test_cleanup.py ...                                                                                                                                   [ 77%]
tests/test_serverless/test_utils/test_cuda.py ...                                                                                                                                      [ 79%]
tests/test_serverless/test_utils/test_debugger.py .......                                                                                                                              [ 85%]
tests/test_serverless/test_utils/test_download.py .....                                                                                                                                [ 89%]
tests/test_serverless/test_utils/test_upload.py ......                                                                                                                                 [ 93%]
tests/test_serverless/test_utils/test_validate.py .......                                                                                                                              [ 99%]
tests/test_shared/test_auth.py .                                                                                                                                                       [100%]

====================================================================================== warnings summary ======================================================================================
runpod/__init__.py:3
  /Users/tleyden/Development/runpod-python/runpod/__init__.py:3: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    from pkg_resources import get_distribution, DistributionNotFound

tests/test_serverless/test_modules/test_fastapi.py:49
  /Users/tleyden/Development/runpod-python/tests/test_serverless/test_modules/test_fastapi.py:49: PytestUnknownMarkWarning: Unknown pytest.mark.asyncio - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.asyncio

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================================================================== 129 passed, 2 warnings in 49.92s ==============================================================================

@justinmerrell justinmerrell merged commit 22a152b into runpod:main Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support passing a template ID when starting a pod via createPod

2 participants