Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Lo <wenchih@apache.org>
  • Loading branch information
lowc1012 committed Feb 16, 2024
1 parent c52055a commit 02400e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/flytekit/unit/core/test_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ def test_convert_limits(resource_dict: Dict[str, str], expected_resource_name: _

def test_incorrect_type_resources():
with pytest.raises(AssertionError):
Resources(cpu=1) # type: ignore
Resources(cpu=0.1) # type: ignore
with pytest.raises(AssertionError):
Resources(mem=1) # type: ignore
Resources(mem=0.1) # type: ignore
with pytest.raises(AssertionError):
Resources(gpu=1) # type: ignore
Resources(gpu=0.1) # type: ignore
with pytest.raises(AssertionError):
Resources(ephemeral_storage=1) # type: ignore
Resources(ephemeral_storage=0.1) # type: ignore

0 comments on commit 02400e8

Please sign in to comment.