Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nadijagraca committed Aug 8, 2024
1 parent ea4ffc7 commit 768bead
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import pytest
import vizro.models as vm
from tests_utils.asserts import assert_component_equal
from vizro_ai.dashboard._pydantic_output import _create_message_content, _create_prompt_template, _get_pydantic_model


def test_get_pydantic_model_valid(component_description, fake_llm):
pydantic_output = _get_pydantic_model(
query=component_description, llm_model=fake_llm, response_model=vm.Card, df_info=None
)
assert_component_equal(
pydantic_output.build(), vm.Card(text="this is a card", href="").build(), keys_to_strip={"id"}
assert pydantic_output.dict(exclude={"id": True}) == vm.Card(text="this is a card", href="").dict(
exclude={"id": True}
)


Expand Down

0 comments on commit 768bead

Please sign in to comment.