Skip to content

Commit

Permalink
Update tests/flytekit/unit/extras/templates/test_pod_templates.py
Browse files Browse the repository at this point in the history
Co-authored-by: Flyte Bot <[email protected]>
  • Loading branch information
granthamtaylor and flyte-bot authored Dec 30, 2024
1 parent 44e2ea3 commit 067c902
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/flytekit/unit/extras/templates/test_pod_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
from flytekit.core.task import task

def test_attach_shm():

shm = attach_shm("SHM", "5Gi")

@task(pod_template=shm)
assert shm.name == "SHM"
assert shm.size == "5Gi"

def my_task():
pass

# Verify pod template is attached to task
assert my_task.pod_template == shm

0 comments on commit 067c902

Please sign in to comment.