Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
italojohnny authored and ogabrielluiz committed Aug 28, 2024
1 parent 2e560fa commit a27c6df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/backend/tests/unit/io/test_io_schema.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List, Literal
from typing import Literal

import pytest
from pydantic.fields import FieldInfo
Expand Down Expand Up @@ -96,7 +96,7 @@ def test_is_list_attribute_processing(self):
input_instance = StrInput(name="test_field", is_list=True)
schema = create_input_schema([input_instance])
field_info: FieldInfo = schema.model_fields["test_field"]
assert field_info.annotation == List[str]
assert field_info.annotation == list[str]

# Input with options attribute is processed correctly
def test_options_attribute_processing(self):
Expand Down Expand Up @@ -184,7 +184,7 @@ def test_is_list_handling(self):
input_instance = StrInput(name="test_field", is_list=True)
schema = create_input_schema([input_instance])
field_info = schema.model_fields["test_field"]
assert field_info.annotation == List[str]
assert field_info.annotation == list[str]

# Converting FieldTypes to corresponding Python types
def test_field_types_conversion(self):
Expand Down

0 comments on commit a27c6df

Please # to comment.