Skip to content

Commit

Permalink
test_batch_size
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw committed Apr 3, 2023
1 parent 0977021 commit ea7e1aa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/flytekit/unit/core/test_flyte_pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from flytekit.models.literals import BlobMetadata
from flytekit.models.types import LiteralType
from flytekit.tools.translator import get_serializable
from flytekit.types.pickle.pickle import FlytePickle, FlytePickleTransformer
from flytekit.types.pickle.pickle import BatchSize, FlytePickle, FlytePickleTransformer

default_img = Image(name="default", fqn="test", tag="tag")
serialization_settings = flytekit.configuration.SerializationSettings(
Expand Down Expand Up @@ -55,6 +55,11 @@ def test_get_literal_type():
)


def test_batch_size():
bs = BatchSize(5)
assert bs.val == 5


def test_nested():
class Foo(object):
def __init__(self, number: int):
Expand Down

0 comments on commit ea7e1aa

Please sign in to comment.