Skip to content

Commit

Permalink
Merge pull request #863 from PrefectHQ/couple-more-flakes
Browse files Browse the repository at this point in the history
mark a couple more flakes
  • Loading branch information
zzstoatzz authored Mar 7, 2024
2 parents 3bfaa07 + d8f3b8d commit 09bfa77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/ai/beta/vision/test_cast.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def test_map(self):
Location(city="Washington", state="D.C."),
)

@pytest.mark.flaky(reruns=3)
async def test_async_map(self):
ny = marvin.beta.Image(
"https://images.unsplash.com/photo-1568515387631-8b650bbcdb90"
Expand Down
1 change: 1 addition & 0 deletions tests/ai/beta/vision/test_extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def test_ny_image_and_text(self):
[Location(city="New York City", state="NY")],
)

@pytest.mark.flaky(max_runs=3)
def test_dog(self):
class Animal(BaseModel, frozen=True):
type: Literal["cat", "dog", "bird", "frog", "horse", "pig"]
Expand Down
2 changes: 1 addition & 1 deletion tests/ai/test_cast.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def test_cast_text_with_subtle_instructions(self, gpt_4):

def test_str_target_if_only_instructions_provided(self):
result = marvin.cast(
"one", instructions="the numerical representation of the word "
"one", instructions="the arabic numeral for the provided word"
)
assert isinstance(result, str)
assert result == "1"
Expand Down

0 comments on commit 09bfa77

Please sign in to comment.