Commit graph

4 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
59e0bd6e9b 🐛 fix(component.py): change variable name from function_entrypoint_name to _function_entrypoint_name for better readability and consistency
🐛 fix(component.py): fix condition to check if _function_entrypoint_name is empty in Component class

🐛 fix(manager.py): change condition to check if key is in Settings.model_fields.keys() instead of Settings.__fields__.keys() for better accuracy

 feat(settings.py): add support for loading settings from a YAML file and updating settings from YAML and kwargs

🐛 fix(util.py): get "type" or "annotation" from value in get_type function to handle both cases

🐛 fix(test_cli.py): convert temp_dir to string before checking if it is in settings_manager.settings.COMPONENTS_PATH

🐛 fix(test_custom_component.py): change variable name from function_entrypoint_name to _function_entrypoint_name in tests for consistency and remove test for ComponentFunctionEntrypointNameNullError since it is not used anymore

📝 docs(test_llms_template.py): update description of `OpenAI` Chat large language models API in test case
2023-08-20 15:08:06 -03:00
Gabriel Luiz Freitas Almeida
4e1fc2202a 🔥 refactor(test_cli.py): remove unused imports and test cases
The test_cli.py file had some unused imports and test cases that were not being used. This commit removes those unused imports and test cases to improve code cleanliness and maintainability.
2023-08-07 14:16:37 -03:00
Gabriel Luiz Freitas Almeida
41707c1eac 🔧 chore(test_cli.py): refactor test_components_path to use a temporary directory for components path
🔧 chore(test_cli.py): refactor test_components_path to use a temporary directory for components path to improve test isolation and avoid side effects
2023-08-07 11:59:23 -03:00
Gabriel Luiz Freitas Almeida
36a7ba4ad5 🚀 feat(test_cli.py): add tests for server functionality and command line options
🚀 feat(test_cli.py): add test for checking database URL option

🚀 feat(test_cli.py): add test for checking components path option
2023-08-07 09:45:09 -03:00