Skip to content

Commit

Permalink
chore(deps): update dependency google-cloud-pubsub to v2 (#84)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency google-cloud-pubsub to v2

* upgrade pubsub to v2

* run blacken

Co-authored-by: Leah Cole <coleleah@google.com>
Co-authored-by: Leah E. Cole <6719667+leahecole@users.noreply.github.com>
  • Loading branch information
3 people authored and dandhlee committed Nov 29, 2022
1 parent 3505b1b commit c658a40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions asset/snippets/snippets/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,23 @@ def test_topic():
topic_id = f"topic-{uuid.uuid4().hex}"
publisher = pubsub_v1.PublisherClient()
topic_path = publisher.topic_path(PROJECT, topic_id)
topic = publisher.create_topic(topic_path)
topic = publisher.create_topic(request={"name": topic_path})

yield topic

publisher.delete_topic(topic_path)
publisher.delete_topic(request={"topic": topic_path})


@pytest.fixture(scope="module")
def another_topic():
topic_id = f"topic-{uuid.uuid4().hex}"
publisher = pubsub_v1.PublisherClient()
topic_path = publisher.topic_path(PROJECT, topic_id)
topic = publisher.create_topic(topic_path)
topic = publisher.create_topic(request={"name": topic_path})

yield topic

publisher.delete_topic(topic_path)
publisher.delete_topic(request={"topic": topic_path})


@pytest.fixture(scope="module")
Expand Down
2 changes: 1 addition & 1 deletion asset/snippets/snippets/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
google-cloud-storage==1.35.0
google-cloud-asset==2.2.0
google-cloud-resource-manager==0.30.3
google-cloud-pubsub==1.7.0
google-cloud-pubsub==2.2.0
google-cloud-bigquery==2.6.1

0 comments on commit c658a40

Please sign in to comment.