@@ -138,7 +138,7 @@ def test_publish_single_bytes_wo_attrs_w_bound_client(self):
138138 MSGID = 'DEADBEEF'
139139 MESSAGE = {'data' : B64 , 'attributes' : {}}
140140 conn = _Connection ()
141- conn ._topic_publish_response = { 'messageIds' : [MSGID ]}
141+ conn ._topic_publish_response = [MSGID ]
142142 client = _Client (project = self .PROJECT , connection = conn )
143143 topic = self ._makeOne (self .TOPIC_NAME , client = client )
144144
@@ -169,7 +169,7 @@ def _utcnow():
169169 conn1 = _Connection ()
170170 client1 = _Client (project = self .PROJECT , connection = conn1 )
171171 conn2 = _Connection ()
172- conn2 ._topic_publish_response = { 'messageIds' : [MSGID ]}
172+ conn2 ._topic_publish_response = [MSGID ]
173173 client2 = _Client (project = self .PROJECT , connection = conn2 )
174174
175175 topic = self ._makeOne (self .TOPIC_NAME , client = client1 ,
@@ -191,7 +191,7 @@ def test_publish_single_bytes_w_add_timestamp_w_ts_in_attrs(self):
191191 MESSAGE = {'data' : B64 ,
192192 'attributes' : {'timestamp' : OVERRIDE }}
193193 conn = _Connection ()
194- conn ._topic_publish_response = { 'messageIds' : [MSGID ]}
194+ conn ._topic_publish_response = [MSGID ]
195195 client = _Client (project = self .PROJECT , connection = conn )
196196 topic = self ._makeOne (self .TOPIC_NAME , client = client ,
197197 timestamp_messages = True )
@@ -210,7 +210,7 @@ def test_publish_single_w_attrs(self):
210210 MESSAGE = {'data' : B64 ,
211211 'attributes' : {'attr1' : 'value1' , 'attr2' : 'value2' }}
212212 conn = _Connection ()
213- conn ._topic_publish_response = { 'messageIds' : [MSGID ]}
213+ conn ._topic_publish_response = [MSGID ]
214214 client = _Client (project = self .PROJECT , connection = conn )
215215 topic = self ._makeOne (self .TOPIC_NAME , client = client )
216216
@@ -233,7 +233,7 @@ def test_publish_multiple_w_bound_client(self):
233233 MESSAGE2 = {'data' : B64_2 .decode ('ascii' ),
234234 'attributes' : {'attr1' : 'value1' , 'attr2' : 'value2' }}
235235 conn = _Connection ()
236- conn ._topic_publish_response = { 'messageIds' : [MSGID1 , MSGID2 ]}
236+ conn ._topic_publish_response = [MSGID1 , MSGID2 ]
237237 client = _Client (project = self .PROJECT , connection = conn )
238238 topic = self ._makeOne (self .TOPIC_NAME , client = client )
239239
@@ -263,7 +263,7 @@ def test_publish_multiple_w_alternate_client(self):
263263 conn1 = _Connection ()
264264 client1 = _Client (project = self .PROJECT , connection = conn1 )
265265 conn2 = _Connection ()
266- conn2 ._topic_publish_response = { 'messageIds' : [MSGID1 , MSGID2 ]}
266+ conn2 ._topic_publish_response = [MSGID1 , MSGID2 ]
267267 client2 = _Client (project = self .PROJECT , connection = conn2 )
268268 topic = self ._makeOne (self .TOPIC_NAME , client = client1 )
269269
@@ -627,7 +627,7 @@ def test_commit_w_bound_client(self):
627627 MESSAGE2 = {'data' : B64_2 .decode ('ascii' ),
628628 'attributes' : {'attr1' : 'value1' , 'attr2' : 'value2' }}
629629 conn = _Connection ()
630- conn ._topic_publish_response = { 'messageIds' : [MSGID1 , MSGID2 ]}
630+ conn ._topic_publish_response = [MSGID1 , MSGID2 ]
631631 client = _Client (project = 'PROJECT' , connection = conn )
632632 topic = _Topic ()
633633 batch = self ._makeOne (topic , client = client )
@@ -657,7 +657,7 @@ def test_commit_w_alternate_client(self):
657657 conn1 = _Connection ()
658658 client1 = _Client (project = 'PROJECT' , connection = conn1 )
659659 conn2 = _Connection ()
660- conn2 ._topic_publish_response = { 'messageIds' : [MSGID1 , MSGID2 ]}
660+ conn2 ._topic_publish_response = [MSGID1 , MSGID2 ]
661661 client2 = _Client (project = 'PROJECT' , connection = conn2 )
662662 topic = _Topic ()
663663 batch = self ._makeOne (topic , client = client1 )
@@ -686,7 +686,7 @@ def test_context_mgr_success(self):
686686 MESSAGE2 = {'data' : B64_2 .decode ('ascii' ),
687687 'attributes' : {'attr1' : 'value1' , 'attr2' : 'value2' }}
688688 conn = _Connection ()
689- conn ._topic_publish_response = { 'messageIds' : [MSGID1 , MSGID2 ]}
689+ conn ._topic_publish_response = [MSGID1 , MSGID2 ]
690690 client = _Client (project = 'PROJECT' , connection = conn )
691691 topic = _Topic ()
692692 batch = self ._makeOne (topic , client = client )
0 commit comments