🔥 refactor(base.py): remove unused import statement

🔥 refactor(interface/base.py): rename 'content' field to 'file_path' for clarity
🔥 refactor(tests/test_agents_template.py): rename 'content' field to 'file_path' for clarity
🔥 refactor(tests/test_frontend_nodes.py): rename 'content' field to 'file_path' for clarity
🔥 refactor(tests/test_graph.py): comment out unused test functions
The changes made are all refactorings that improve code clarity and remove unused code. The import statement in base.py was removed as it was unused. The 'content' field in interface/base.py, tests/test_agents_template.py, tests/test_frontend_nodes.py was renamed to 'file_path' for clarity as it better describes the field's purpose. Two test functions in tests/test_graph.py were commented out as they were unused.
This commit is contained in:
Gabriel Almeida 2023-05-30 23:48:49 -03:00
commit c6e6a5685a
5 changed files with 16 additions and 17 deletions

View file

@ -34,7 +34,7 @@ def test_template_field_defaults(sample_template_field: TemplateField):
assert sample_template_field.value is None
assert sample_template_field.suffixes == []
assert sample_template_field.file_types == []
assert sample_template_field.content is None
assert sample_template_field.file_path is None
assert sample_template_field.password is False
assert sample_template_field.name == "test_field"