Skip to content

Commit

Permalink
Add a test for a set
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-S-Rosen committed Oct 12, 2023
1 parent f190653 commit d215f7f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions parsl/tests/test_python_apps/test_lifted.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ def returns_a_list():
return ["X", "Y"]


@python_app
def returns_a_set():
return ("X", "Y")


@python_app
def returns_a_class():
from dataclasses import dataclass
Expand Down Expand Up @@ -45,6 +50,17 @@ def test_returns_a_list():
assert returns_a_list()[0].result() == "X"


def test_returns_a_set():

# precondition that returns_a_set behaves
# correctly
assert returns_a_set().result()[0] == "X"

# check that the deferred __getitem__ functionality works,
# allowing [] to be used on an AppFuture
assert returns_a_set()[0].result() == "X"


def test_returns_a_class():

# precondition that returns_a_class behaves
Expand Down

0 comments on commit d215f7f

Please sign in to comment.