chore: Update supported versions in tests constants (#5569)

* fix(tests): update supported versions in constants.py to include new releases

- Updated SUPPORTED_VERSIONS to reflect the latest versions: 1.0.19, 1.1.0, and 1.1.1.
- This change ensures that tests are aligned with the most current versioning.

* refactor(tests): update file_names_mapping for input, output, and prompt components

- Removed outdated version entries (1.0.15 to 1.0.18) and added new versions (1.1.0 and 1.1.1) for ChatInput, TextInput, ChatOutput, and Prompt components.
- Ensures test cases are aligned with the latest component versions for improved accuracy and reliability.

* fix(tests): update file_names_mapping in TestTextOutputComponent to reflect new versioning

- Removed outdated version entries (1.0.17, 1.0.18) and added new versions (1.1.0, 1.1.1) for TextOutput component.
- Ensures test cases are aligned with the latest component versions for improved accuracy and reliability.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2025-01-07 12:43:49 -03:00 committed by GitHub
commit 7084433adc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 19 deletions

View file

@ -1 +1 @@
SUPPORTED_VERSIONS = ["1.0.17", "1.0.18", "1.0.19"]
SUPPORTED_VERSIONS = ["1.0.19", "1.1.0", "1.1.1"]

View file

@ -30,11 +30,9 @@ class TestChatInput(ComponentTestBaseWithClient):
@pytest.fixture
def file_names_mapping(self):
return [
{"version": "1.0.15", "module": "inputs", "file_name": "ChatInput"},
{"version": "1.0.16", "module": "inputs", "file_name": "ChatInput"},
{"version": "1.0.17", "module": "inputs", "file_name": "ChatInput"},
{"version": "1.0.18", "module": "inputs", "file_name": "ChatInput"},
{"version": "1.0.19", "module": "inputs", "file_name": "ChatInput"},
{"version": "1.1.0", "module": "inputs", "file_name": "chat"},
{"version": "1.1.1", "module": "inputs", "file_name": "chat"},
]
async def test_message_response(self, component_class, default_kwargs):
@ -142,9 +140,7 @@ class TestTextInputComponent(ComponentTestBaseWithoutClient):
@pytest.fixture
def file_names_mapping(self):
return [
{"version": "1.0.15", "module": "inputs", "file_name": "TextInput"},
{"version": "1.0.16", "module": "inputs", "file_name": "TextInput"},
{"version": "1.0.17", "module": "inputs", "file_name": "TextInput"},
{"version": "1.0.18", "module": "inputs", "file_name": "TextInput"},
{"version": "1.0.19", "module": "inputs", "file_name": "TextInput"},
{"version": "1.1.0", "module": "inputs", "file_name": "text"},
{"version": "1.1.1", "module": "inputs", "file_name": "text"},
]

View file

@ -28,11 +28,9 @@ class TestChatOutput(ComponentTestBaseWithClient):
@pytest.fixture
def file_names_mapping(self):
return [
{"version": "1.0.15", "module": "outputs", "file_name": "ChatOutput"},
{"version": "1.0.16", "module": "outputs", "file_name": "ChatOutput"},
{"version": "1.0.17", "module": "outputs", "file_name": "ChatOutput"},
{"version": "1.0.18", "module": "outputs", "file_name": "ChatOutput"},
{"version": "1.0.19", "module": "outputs", "file_name": "ChatOutput"},
{"version": "1.1.0", "module": "outputs", "file_name": "chat"},
{"version": "1.1.1", "module": "outputs", "file_name": "chat"},
]
@ -50,7 +48,7 @@ class TestTextOutputComponent(ComponentTestBaseWithoutClient):
@pytest.fixture
def file_names_mapping(self):
return [
{"version": "1.0.17", "module": "outputs", "file_name": "TextOutput"},
{"version": "1.0.18", "module": "outputs", "file_name": "TextOutput"},
{"version": "1.0.19", "module": "outputs", "file_name": "TextOutput"},
{"version": "1.1.0", "module": "outputs", "file_name": "text"},
{"version": "1.1.1", "module": "outputs", "file_name": "text"},
]

View file

@ -17,11 +17,9 @@ class TestPromptComponent(ComponentTestBaseWithClient):
@pytest.fixture
def file_names_mapping(self):
return [
{"version": "1.0.15", "module": "prompts", "file_name": "Prompt"},
{"version": "1.0.16", "module": "prompts", "file_name": "Prompt"},
{"version": "1.0.17", "module": "prompts", "file_name": "Prompt"},
{"version": "1.0.18", "module": "prompts", "file_name": "Prompt"},
{"version": "1.0.19", "module": "prompts", "file_name": "Prompt"},
{"version": "1.1.0", "module": "prompts", "file_name": "prompt"},
{"version": "1.1.1", "module": "prompts", "file_name": "prompt"},
]
def test_post_code_processing(self, component_class, default_kwargs):