Closed lukesneeringer closed 7 years ago
Confirmed:
(gapic-test) lukesneeringer@lukesneeringer0:~/Code/Google/artman/output/gapic-google-cloud-pubsub-v1:master$ python
Python 3.6.0 (default, Jan 5 2017, 10:44:51)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mock
>>> m = mock.Mock()
>>> m('foo', 'bar', baz='bacon', spam='eggs')
<Mock name='mock()' id='140706205734392'>
>>> m.call_args
call('foo', 'bar', baz='bacon', spam='eggs')
>>> m.call_args[0]
('foo', 'bar')
>>> m.call_args[1]
{'baz': 'bacon', 'spam': 'eggs'}
>>> args, kwargs = m.call_args
>>> args
('foo', 'bar')
>>> kwargs
{'baz': 'bacon', 'spam': 'eggs'}
Tagging #1207, which is related (it is the previous fix which turned out to be incorrect).
There are still 30 failures on the pubsub API with the newest toolkit changes:
A quick eyeball suggests most of them look like this:
I think that this is because this line:
...is probably wrong. I think the
[0]
is errant there.