File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ class TestGetArtifactText(unittest.TestCase):
9393 def test_get_artifact_text_single_part (self ):
9494 # Setup
9595 artifact = Artifact (
96- name = " test-artifact" ,
96+ name = ' test-artifact' ,
9797 parts = [Part (root = TextPart (text = 'Hello world' ))],
9898 artifact_id = 'test-artifact-id' ,
9999 )
@@ -107,7 +107,7 @@ def test_get_artifact_text_single_part(self):
107107 def test_get_artifact_text_multiple_parts (self ):
108108 # Setup
109109 artifact = Artifact (
110- name = " test-artifact" ,
110+ name = ' test-artifact' ,
111111 parts = [
112112 Part (root = TextPart (text = 'First line' )),
113113 Part (root = TextPart (text = 'Second line' )),
@@ -125,7 +125,7 @@ def test_get_artifact_text_multiple_parts(self):
125125 def test_get_artifact_text_custom_delimiter (self ):
126126 # Setup
127127 artifact = Artifact (
128- name = " test-artifact" ,
128+ name = ' test-artifact' ,
129129 parts = [
130130 Part (root = TextPart (text = 'First part' )),
131131 Part (root = TextPart (text = 'Second part' )),
@@ -143,7 +143,7 @@ def test_get_artifact_text_custom_delimiter(self):
143143 def test_get_artifact_text_empty_parts (self ):
144144 # Setup
145145 artifact = Artifact (
146- name = " test-artifact" ,
146+ name = ' test-artifact' ,
147147 parts = [],
148148 artifact_id = 'test-artifact-id' ,
149149 )
@@ -154,5 +154,6 @@ def test_get_artifact_text_empty_parts(self):
154154 # Verify
155155 assert result == ''
156156
157+
157158if __name__ == '__main__' :
158159 unittest .main ()
Original file line number Diff line number Diff line change 1-
21from a2a .types import (
32 DataPart ,
43 FilePart ,
87 TextPart ,
98)
109from a2a .utils .parts import (
11- get_text_parts ,
1210 get_data_parts ,
1311 get_file_parts ,
12+ get_text_parts ,
1413)
1514
1615
You can’t perform that action at this time.
0 commit comments