Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e090bcd

Browse filesBrowse files
noerogengelke
authored andcommitted
Add test for updating a subscription. (GoogleCloudPlatform#1336)
Tests for GoogleCloudPlatform#1335. Using ack_deadline_seconds as the example.
1 parent f241636 commit e090bcd
Copy full SHA for e090bcd

File tree

Expand file treeCollapse file tree

1 file changed

+10
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+10
-0
lines changed

‎pubsub/cloud-client/subscriber_test.py

Copy file name to clipboardExpand all lines: pubsub/cloud-client/subscriber_test.py
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,16 @@ def _():
154154
subscriber_client.get_subscription(subscription)
155155

156156

157+
def test_update(subscriber_client, subscription, capsys):
158+
ACK_DEADLINE_SECONDS = 100
159+
160+
subscriber.update_subscription(PROJECT, SUBSCRIPTION, ACK_DEADLINE_SECONDS)
161+
162+
out, _ = capsys.readouterr()
163+
assert subscription in out
164+
assert '100' in out
165+
166+
157167
def _publish_messages(publisher_client, topic):
158168
for n in range(5):
159169
data = u'Message {}'.format(n).encode('utf-8')

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.