Skip to content

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Oct 16, 2024
1 parent dea8756 commit 38f23d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/test_meta_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_check_and_load_image_two():


def test_use_object_detection_fine_tuning_none():
artifacts = Artifacts("test")
artifacts = Artifacts("test", "test")
code = "print('Hello, World!')"
artifacts["code"] = code
output = use_object_detection_fine_tuning(artifacts, "code", "123")
Expand All @@ -33,7 +33,7 @@ def test_use_object_detection_fine_tuning_none():


def test_use_object_detection_fine_tuning():
artifacts = Artifacts("test")
artifacts = Artifacts("test", "test")
code = """florence2_phrase_grounding('one', image1)
owl_v2_image('two', image2)
florence2_sam2_image('three', image3)"""
Expand All @@ -50,7 +50,7 @@ def test_use_object_detection_fine_tuning():


def test_use_object_detection_fine_tuning_twice():
artifacts = Artifacts("test")
artifacts = Artifacts("test", "test")
code = """florence2_phrase_grounding('one', image1)
owl_v2_image('two', image2)
florence2_sam2_image('three', image3)"""
Expand All @@ -75,7 +75,7 @@ def test_use_object_detection_fine_tuning_twice():


def test_use_object_detection_fine_tuning_real_case():
artifacts = Artifacts("test")
artifacts = Artifacts("test", "test")
code = "florence2_phrase_grounding('(strange arg)', image1)"
expected_code = 'florence2_phrase_grounding("(strange arg)", image1, "123")'
artifacts["code"] = code
Expand Down

0 comments on commit 38f23d3

Please sign in to comment.