Skip to content

Commit c658a40

Browse files
renovate-botleahecole
authored andcommitted
chore(deps): update dependency google-cloud-pubsub to v2 (#84)
* chore(deps): update dependency google-cloud-pubsub to v2 * upgrade pubsub to v2 * run blacken Co-authored-by: Leah Cole <[email protected]> Co-authored-by: Leah E. Cole <[email protected]>
1 parent 3505b1b commit c658a40

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

asset/snippets/snippets/conftest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,23 @@ def test_topic():
3535
topic_id = f"topic-{uuid.uuid4().hex}"
3636
publisher = pubsub_v1.PublisherClient()
3737
topic_path = publisher.topic_path(PROJECT, topic_id)
38-
topic = publisher.create_topic(topic_path)
38+
topic = publisher.create_topic(request={"name": topic_path})
3939

4040
yield topic
4141

42-
publisher.delete_topic(topic_path)
42+
publisher.delete_topic(request={"topic": topic_path})
4343

4444

4545
@pytest.fixture(scope="module")
4646
def another_topic():
4747
topic_id = f"topic-{uuid.uuid4().hex}"
4848
publisher = pubsub_v1.PublisherClient()
4949
topic_path = publisher.topic_path(PROJECT, topic_id)
50-
topic = publisher.create_topic(topic_path)
50+
topic = publisher.create_topic(request={"name": topic_path})
5151

5252
yield topic
5353

54-
publisher.delete_topic(topic_path)
54+
publisher.delete_topic(request={"topic": topic_path})
5555

5656

5757
@pytest.fixture(scope="module")
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
google-cloud-storage==1.35.0
22
google-cloud-asset==2.2.0
33
google-cloud-resource-manager==0.30.3
4-
google-cloud-pubsub==1.7.0
4+
google-cloud-pubsub==2.2.0
55
google-cloud-bigquery==2.6.1

0 commit comments

Comments
 (0)